Numbers with same digit set in base 10 and base 16: Difference between revisions

m
Line 117:
for j in 1:length(d), c in Iterators.filter(x -> length(unique(x)) == dlen,
Combinatorics.with_replacement_combinations(d, j)), p in permutations(c)
if evalpoly(16, p) == i && (length(p) == 1 || p[end] != 0 || count(x -> x == 0, p) > 1)
print(rpad(i, 6), " == 0x", rpad(evalpoly(10, p), 8), (found += 1) % 5 == 0 ? "\n" : "")
break
Line 128:
</lang>{{out}}
<pre>
10 == 0x10x0 21 == 0x20x1 32 == 0x30x2 43 == 0x40x3 54 == 0x50x4
65 == 0x60x5 76 == 0x70x6 87 == 0x80x7 98 == 0x90x8 539 == 0x350x9
37153 == 0x1730x35 913 371 == 0x3910x173 1040913 == 0x4100x391 20801040 == 0x8200x410 23392080 == 0x9230x820
41002339 == 0x10040x923 5141 4100 == 0x14150x1004 54125141 == 0x15240x1415 54415412 == 0x15410x1524 61825441 == 0x18260x1541
82006182 == 0x20080x1826 92418200 == 0x24190x2008 135939241 == 0x35190x2419 1366513593 == 0x35610x3519 1396913665 == 0x36910x3561
1640613969 == 0x40160x3691 2053016406 == 0x50320x4016 2694620530 == 0x69420x5032 3097926946 == 0x79030x6942 3280330979 == 0x80230x7903
3363832803 == 0x83660x8023 3384033638 == 0x84300x8366 3384133840 == 0x84310x8430 3384233841 == 0x84320x8431 3384333842 == 0x84330x8432
33843 == 0x8433 33844 == 0x8434 33845 == 0x8435 33846 == 0x8436 33847 == 0x8437 33848 == 0x8438
3384933848 == 0x84390x8438 3488333849 == 0x88430x8439 3794334883 == 0x94370x8843 3893137943 == 0x98130x9437 3896638931 == 0x98360x9813
3899538966 == 0x98530x9836 6631038995 == 0x103060x9853 71444 66310 == 0x117140x10306 7149771444 == 0x117490x11714 7151171497 == 0x117570x11749
7512071511 == 0x125700x11757 7512175120 == 0x125710x12570 7512275121 == 0x125720x12571 7512375122 == 0x125730x12572 7512475123 == 0x125740x12573
75124 == 0x12574 75125 == 0x12575 75126 == 0x12576 75127 == 0x12577 75128 == 0x12578 75129 == 0x12579
7562175129 == 0x127650x12579 8615075621 == 0x150860x12765 8816586150 == 0x158650x15086 9146588165 == 0x165490x15865 9176991465 == 0x166790x16549
91769 == 0x16679 96617 == 0x17969 98711 == 0x18197 99481 == 0x18499
</pre>
 
4,103

edits