OFFSET
1,3
COMMENTS
A281378 is a subsequence of this sequence.
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000
EXAMPLE
34 is in the sequence because the binary reflected Gray code representation of 34 is '110011', which is palindromic.
MATHEMATICA
Select[Range[0, 10^3], 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=0
j=1
while j<=10000:
if G(i)==G(i)[::-1]:
print(str(j)+" "+str(i))
j+=1
i+=1
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Indranil Ghosh, Jan 21 2017
STATUS
approved
