OFFSET
0,3
COMMENTS
Leading zeros in binary expansions are ignored.
There are four fixed points: 0, 1, 2 and 5; their binary expansion is a squarefree string.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8192
Rémy Sigrist, PARI program for A337222
FORMULA
a(A020330(n)) = n for any n > 0.
EXAMPLE
The first terms, in decimal and in binary, are:
n a(n) bin(n) bin(a(n))
-- ---- ------ ---------
0 0 0 0
1 1 1 1
2 2 10 10
3 1 11 1
4 2 100 10
5 5 101 101
6 2 110 10
7 3 111 11
8 4 1000 100
9 5 1001 101
10 2 1010 10
11 5 1011 101
12 4 1100 100
13 5 1101 101
14 6 1110 110
15 3 1111 11
16 4 10000 100
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 19 2020
STATUS
approved