OFFSET
1,4
COMMENTS
If a(n) > 1, a(n+1) = a(n) - 1.
Since numbers of the form n! are rare, sequence behaves quite regularly. - Lambert Klasen (lambert.klasen(AT)gmx.de), Dec 23 2004
PROG
(PARI) for(n=1, 54, print1(sum(a=0, n, sum(b=0, a, sum(c=0, b, sum(d=0, c, if(a!+b!+c!+d!-n, 0, 1))))), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 23 2002
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.de), Dec 23 2004
STATUS
approved