OFFSET
0,5
COMMENTS
The first 4 occurs at n=2206. The first 5 occurs at n = 361788001015 = A226061(16).
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..21622
MATHEMATICA
nn = 1200; m = 1; While[Factorial@ m < nn, m++]; m; t = TakeWhile[
Reverse@ NestList[# - Total@ IntegerDigits[#, MixedRadix[Reverse@ Range[2, m]]] &, nn, 182], # <= 1000 &]; {0}~Join~Table[SelectFirst[Reverse@ Range@ 10, Divisible[t[[n]] - t[[n - 1]], #!] &], {n, 2, 87}] (* Michael De Vlieger, Jun 27 2016, Version 10.2 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 12 2013
STATUS
approved