OFFSET
0,3
COMMENTS
a(n) gives the number of ways to zero n bit by bit.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8192
Rémy Sigrist, PARI program
EXAMPLE
For n = 5:
- the binary expansion of 5 is "101",
- we have the following appropriate sequences:
(5, 3, 1, 0)
(5, 2, 1, 0)
(5, 2, 0)
(5, 1, 0)
- hence a(5) = 4.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Dec 10 2023
STATUS
approved