OFFSET
1,2
LINKS
Ross Millikan, Table of n, a(n) for n = 1..85
EXAMPLE
4494410 in hex is 44944A. Replacing A in the string results in 4494410.
PROG
(Python)
def hexmatch(inp):
h=hex(inp)
ho=''
for i in h[2:]:
if i=='a': ho+='10'
elif i=='b' :ho+='11'
elif i=='c' :ho+='12'
elif i=='d' :ho+='13'
elif i=='e' :ho+='14'
elif i=='f' :ho+='15'
else: ho +=i
return ho
def loop(start, stop):
rec=100000000
for i in range(start, stop):
val=int(hexmatch(i))
diff=val-i
if diff==0: print(i, end=', ')
loop(1, 5660816)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Ross Millikan, Dec 27 2012
STATUS
approved