|
|
A230412
|
|
a(n) = the number of ways to express n as a sum d1*(k1!-1) + d2*(k2!-1) + ... + dj*(kj!-1), where all k's are distinct and greater than one and each di is in range [1,ki]; the characteristic function of A219650.
|
|
11
|
|
|
1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(0)=1 as the only solution is an empty sum.
1 can be represented as 1*(2!-1), and this is the only solution, thus a(1) = 1.
2 can be represented (also uniquely) as 2*(2!-1) thus a(2) = 1.
3 and 4 cannot be represented as such a sum, thus a(3) = a(4) = 0.
5 can be represented (uniquely) as 1*(3!-1) thus a(5) = 1.
6 can be represented (uniquely) as 1*(3!-1) + 1*(2!-1), thus a(6) = 1.
7 can be represented (uniquely) as 1*(3!-1) + 2*(2!-1), thus a(7) = 1.
17 can be represented (uniquely) as 3*(3!-1) + 2*(2!-1), thus a(17) = 1.
|
|
PROG
|
(Scheme, with memoizing definec-macro from Antti Karttunen's IntSeq-library)
|
|
CROSSREFS
|
The characteristic function of A219650. A219658 gives the positions of zeros.
This sequence relates to the factorial base representation (A007623) in a similar way as A079559 relates to the binary system.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|