OFFSET
0,3
LINKS
Rémy Sigrist, PARI program
EXAMPLE
The first terms, in decimal and in binary, alongside an appropriate palindrome (with dots denoting the removed trailing zeros), are:
n a(n) bin(a(n)) palindrome
-- ---- --------- ----------
0 0 0 1
1 1 1 11.
2 2 10 111.
3 3 11 111..
4 4 100 1111..
5 7 111 11111.
6 6 110 1101011
7 11 1011 1011101
8 5 101 101101.
9 10 1010 10101...
10 8 1000 11011...
11 13 1101 11011....
12 16 10000 11111....
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 26 2024
STATUS
approved