OFFSET
1,3
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The first terms, alongside their binary representation and that of the concatenation of two consecutive terms, are:
n a(n) bin(a(n)) bin(a(n)|a(n+1))
-- ---- --------- ----------------
1 1 1 11
2 1 1 110
3 2 10 101
4 1 1 111
5 3 11 1110
6 2 10 1010
7 2 10 1011
8 3 11 1111
9 3 11 11100
10 4 100 1001
11 1 1 1100
12 4 100 10010
PROG
(PARI) s=0; v=1; for (n=1, 81, print1 (v", "); for (w=1, oo, if (!bittest(s, k=v*2^#binary(w)+w), s+=2^k; v=w; break)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Dec 17 2019
STATUS
approved