OFFSET
1,4
LINKS
FORMULA
a(n) = 0 iff n belongs to A279732.
EXAMPLE
In factorial base:
- 1 = "1", 2 = "10", 3 = "11", 4 = "20",
- we can add without carry 1 and 2, so a(1) = a(2) = 0,
- 1 + 2 + 3 implies a carry, so a(3) = 1,
- 1 + 2 + 4 and 3 + 4 imply a carry, so a(4) = 2.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jul 12 2020
STATUS
approved