OFFSET
1,3
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
The first 10 terms are:
n a(n) A169683(a(n))
-- ---- -------------
1 0 0
2 1 1
3 2 2
4 4 11
5 8 101
6 11 111
7 16 1001
8 26 1111
9 32 10001
10 39 10101
MATHEMATICA
f[0] = 0; f[n_] := Module[{m = Floor@Log2[n + 1], d = n, pos}, Reap[While[m > 0, pos = 2^m - 1; Sow@Floor[d/pos]; d = Mod[d, pos]; --m; ]][[2, 1]] // FromDigits]; Select[Range[0, 15000], PalindromeQ[f[#]] &] (* after N. J. A. Sloane at A169683 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Jun 10 2022
STATUS
approved