OFFSET
1,2
FORMULA
a(n) = 2^floor(log_2(P(n))) + P(n)(mod 2^(floor(log_2(P(n))/2)+1)) -1, where P(n) = the n-th positive integer that is a palindrome when written in binary.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Mar 24 2010
EXTENSIONS
More terms from Nathaniel Johnston, Nov 18 2010
STATUS
approved