OFFSET
0
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10079
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
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 02 2013
STATUS
approved