login
A307314
Number of divisors d of 2n such that adding d to 2n in binary requires no carries.
1
1, 2, 1, 3, 2, 3, 1, 4, 2, 3, 1, 5, 1, 2, 1, 5, 2, 5, 1, 5, 2, 2, 1, 7, 2, 2, 2, 4, 1, 3, 1, 6, 2, 4, 1, 7, 2, 3, 1, 7, 2, 4, 1, 3, 2, 2, 1, 9, 1, 4, 2, 3, 1, 4, 1, 6, 1, 2, 1, 6, 1, 2, 1, 7, 4, 6, 1, 6, 2, 3, 1, 10, 2, 3, 1, 4, 1, 3, 1, 9
OFFSET
1,2
COMMENTS
Equivalently, number of numbers d such that d|2n and d AND 2n = 0.
First differences of either bisection of A325123.
A001511(n) <= a(n) <= A000005(n).
FORMULA
a(p) = 1 + [p is in A247068] for p prime, where [] is the Iverson bracket.
PROG
(PARI) a(n) = sumdiv(2*n, d, bitand(d, 2*n) == 0); \\ Michel Marcus, Apr 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Charlie Neder, Apr 02 2019
STATUS
approved