OFFSET
0,2
COMMENTS
Also, if n can be partitioned into 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] (in other words, if A230412(n)=1), then a(n) = d1*k1! + d2*k2! + ... + dj*kj!. If this is not possible, then n is one of the terms of A219658, and a(n)=0.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10079
FORMULA
a(n) = 2*A230414(n).
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 31 2013
STATUS
approved