OFFSET
1,1
COMMENTS
Inspired by A019460. a(1) = 6 is the least integer producing all nonnegative terms.
FORMULA
Recurrence: a(1) = 6; a(n+1) = n*a(n) - n^2. [Edited by Georg Fischer, Dec 28 2021]
MATHEMATICA
a=6; bb={a}; Do[b=i(a-i); a=b; bb={bb, a}, {i, 20}]; Flatten[bb]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Jan 26 2005
STATUS
approved