OFFSET
0,2
COMMENTS
Differs from A062130 only for those n, which are palindromes in base 2.
EXAMPLE
23 -> 23 + 29 = 52 -> 52 + 11 = 63, so a(23) = 63.
PROG
(ARIBAS): stop := 500; for k := 0 to 80 do c := 0; m := k; test := true; while test and c < stop do inc(c); m := m + bit_reverse(m); test := m <> bit_reverse(m); end; if c < stop then write(m); else write(-1); end; write(" "); end; .
CROSSREFS
KEYWORD
base,easy,sign
AUTHOR
Klaus Brockhaus, Jun 06 2001
STATUS
approved