OFFSET
1,3
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..47
EXAMPLE
626 is in the sequence because binary reflected Gray code for 626 is '1101001011' and both 626 and '1101001011' are palindromics.
MATHEMATICA
Select[Range[10^7], And[Reverse@ # == # &@ IntegerDigits@ #, Reverse@ # == # &@ Abs[Prepend[Most@ #, 0] - #] &@ IntegerDigits[#, 2]] &] (* Michael De Vlieger, Jan 21 2017 *)
PROG
(Python)
def G(n):
....return bin(n^(n/2))[2:]
i=1
j=1
while j<=23:
....if i==int(str(i)[::-1]) and G(i)==G(i)[::-1]:
........print str(j)+" "+str(i)
........j+=1
....i+=1
(PARI) lista(nn) = {my(v, w); for(k=0, nn, if((w=digits(k))==Vecrev(w) && (v=binary(bitxor(k, k>>1)))==Vecrev(v), print1(k, ", "))); } \\ Jinyuan Wang, Mar 01 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Indranil Ghosh, Jan 20 2017
EXTENSIONS
0 and more terms added by Chai Wah Wu, Jan 23 2017
STATUS
approved