OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
FORMULA
PROG
(PARI) a(n) = { my (b=Vecrev(binary(n))); if (b[1]==0, b=concat(1, b)); fromdigits(b, 2) } \\ Rémy Sigrist, Jul 01 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 26 2009
EXTENSIONS
More terms from Sean A. Irvine, Dec 08 2009
STATUS
approved