OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The first terms, alongside a(n) + dup(a(n+1)), are:
n a(n) a(n)+dup(a(n+1))
-- ---- ----------------
1 1 4
2 1 11
3 2 5
4 1 16
5 3 6
6 1 37
7 4 7
8 1 46
9 5 8
10 1 55
PROG
(PARI) s=0; v=1; for(n=1, 84, print1(v", "); for (w=1, oo, if (!bittest(s, x=v+w*(1+2^#binary(w))), s+=2^x; v=w; break)))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, May 11 2019
STATUS
approved