OFFSET
0,3
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8383
EXAMPLE
k | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ...
A340717(k) | 0, 1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 6, 4, 7, ...
n | 0, 1, 2, 3, 4, 5, 6, 7, ...
a(n) | 0, 1, 3, 5, 7, 9, 11, 15, ...
PROG
(PARI) is(n) = n <= fromdigits(Vecrev(binary(n)), 2)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 17 2021
STATUS
approved