cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A187829 Numbers that when converted to hexadecimal and the letters are replaced by base 10 equivalents, result in the same number.

This page as a plain text file.
%I A187829 #24 May 11 2023 18:14:40
%S A187829 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,4494410,4494411,4494412,4494413,
%T A187829 4494414,4494415,4715360,4715361,4715362,4715363,4715364,4715365,
%U A187829 4715366,4715367,4715368,4715369,5660810,5660811,5660812,5660813,5660814,5660815
%N A187829 Numbers that when converted to hexadecimal and the letters are replaced by base 10 equivalents, result in the same number.
%H A187829 Ross Millikan, <a href="/A187829/b187829.txt">Table of n, a(n) for n = 1..85</a>
%e A187829 4494410 in hex is 44944A.  Replacing A in the string results in 4494410.
%o A187829 (Python)
%o A187829 def hexmatch(inp):
%o A187829     h=hex(inp)
%o A187829     ho=''
%o A187829     for i in h[2:]:
%o A187829         if i=='a': ho+='10'
%o A187829         elif i=='b' :ho+='11'
%o A187829         elif i=='c' :ho+='12'
%o A187829         elif i=='d' :ho+='13'
%o A187829         elif i=='e' :ho+='14'
%o A187829         elif i=='f' :ho+='15'
%o A187829         else: ho +=i
%o A187829     return ho
%o A187829 def loop(start, stop):
%o A187829     rec=100000000
%o A187829     for i in range(start, stop):
%o A187829         val=int(hexmatch(i))
%o A187829         diff=val-i
%o A187829         if diff==0: print(i, end=', ')
%o A187829 loop(1, 5660816)
%K A187829 base,nonn
%O A187829 1,2
%A A187829 _Ross Millikan_, Dec 27 2012