OFFSET
1,3
COMMENTS
a(n) tells the position of (n!)-1 in A219666.
MATHEMATICA
Accumulate@ Table[Length@ NestWhileList[# - Total@ IntegerDigits[#,
MixedRadix[Reverse@ Range[2, 120]]] &, (n + 1)! - 1, # > n! - 1 &] - 1, {n, 0, 8}] (* Michael De Vlieger, Jun 27 2016, Version 10.2 *)
PROG
(Scheme, with definec-macro from Antti Karttunen's IntSeq-library):
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 28 2013
EXTENSIONS
Terms a(16) - a(21) computed from the new terms of A219661 by Antti Karttunen, Jun 27 2016
STATUS
approved