OFFSET
1,1
COMMENTS
No carry when adding a(n) to n in binary representation; 2*n <= a(n) <= 2^(floor(log_2(n))+2) (see A000523).
LINKS
Michel Marcus, Table of n, a(n) for n = 1..8192
PROG
(PARI) a(n) = my(m=2*n); while (bitor(m, n) != m+n, m++); m; \\ Michel Marcus, Jun 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 22 2002
STATUS
approved