OFFSET
2,3
EXAMPLE
a[6]=3 since 5!+5!+5!+5!+5!+5!=6!, 3!+3!+3!+2!+2!+2!=4! and 1!+1!+1!+1!+1!+1!=3!
MATHEMATICA
f[n_, k_, m_] := (* # of partitions of n into k factorials <= m! *) Which[n==k, 1, m<=1||n<k|| n>k m!, 0, True, f[n, k, m]=f[n, k, m-1]+f[n-m!, k-1, m]]; a[n_] := Sum[f[r!, n, r-1], {r, 2, n}];
CROSSREFS
KEYWORD
nonn
AUTHOR
Erich Friedman, Jun 23 2001
EXTENSIONS
More terms from Dean Hickerson, Jun 25, 2001
STATUS
approved