OFFSET
0,4
COMMENTS
LINKS
César Eliud Lozada, Illustration for terms up to n=13.
Wikipedia, Kakuro.
FORMULA
a(n) = A032020(n) - 1.
G.f.: (Sum_{k>=0} k!*x^((k^2+k)/2) / Product_{j=1..k} (1-x^j)) - 1/(1-x). - Joerg Arndt, Sep 17 2012
EXAMPLE
a(4)=2 because 4 = 1+3 = 3+1 (2 ways).
a(6)=10 because 6 = 1+5 = 2+4 = 4+2 = 5+1 = 1+2+3 = 1+3+2 = 2+1+3 = 2+3+1 = 3+1+2 = 3+2+1 (10 ways).
MATHEMATICA
nc[n_]:=Total[Length[#]!&/@Select[IntegerPartitions[n], Length[#]>1&&Max[ Tally[ #][[All, 2]]]==1&]]; Array[nc, 50, 0] (* Harvey P. Dale, May 27 2018 *)
PROG
(PARI)
N=66; x='x+O('x^N);
gf=sum(k=0, N, k!*x^((k^2+k)/2) / prod(j=1, k, 1-x^j)) - 1/(1-x);
v=Vec(gf);
vector(#v+1, n, if(n==1, 0, v[n-1]))
/* Joerg Arndt, Sep 17 2012 */
CROSSREFS
KEYWORD
nonn
AUTHOR
César Eliud Lozada, Sep 16 2012
EXTENSIONS
More terms from Joerg Arndt, Sep 17 2012
STATUS
approved