login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A187829 Numbers that when converted to hexadecimal and the letters are replaced by base 10 equivalents, result in the same number. 2
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 4494410, 4494411, 4494412, 4494413, 4494414, 4494415, 4715360, 4715361, 4715362, 4715363, 4715364, 4715365, 4715366, 4715367, 4715368, 4715369, 5660810, 5660811, 5660812, 5660813, 5660814, 5660815 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
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
Sequence in context: A044917 A246337 A161953 * A356974 A105427 A247160
KEYWORD
base,nonn
AUTHOR
Ross Millikan, Dec 27 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 15:57 EDT 2024. Contains 371961 sequences. (Running on oeis4.)