OFFSET
1,2
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
131 is a term of this sequence because (unlike in base 10, where squaring 131 carries a 1 into the thousands place so that 131^2 is the non-palindromic number 17161) in base 16, 131^2 is 16B61.
141 is not a term because, even in base 16, a 1 is carried into the next place, so the result (19281) is not palindromic.
PROG
(Sage)
L=[]
for x in [1..100000]:
M=x.digits(base=16)
N=M[::-1]
if N == M:
d=x^2
D=d.digits(base=16)
E=D[::-1]
if D == E:
MM=(str(x) for x in M)
L.append(Integer(''.join(MM)))
L # Tom Edgar, Apr 29 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. Lowell, Apr 26 2014
EXTENSIONS
a(35)-a(41) from Lars Blomberg, Oct 23 2014
STATUS
approved