OFFSET
1,2
COMMENTS
The quotients are 0, 1, 1, 5, 5, 6, 7, 6, 8, 9, 9, 9, 9, 10, 10, 11, 12, 14, 15, 18, 19, 19, 21, 24, 24.
No more terms < 500000. - Lars Blomberg, Jul 05 2011
a(26) > 595261. - J.W.L. (Jan) Eerland, Nov 05 2024
EXAMPLE
The digits of 414^414 - 414! sum to 4968 and 4968 is divisible by 414, so 414 is in the sequence.
MATHEMATICA
Do[s = n^n - n!; k = Plus @@ IntegerDigits[s]; If[Mod[k, n] == 0, Print[n]], {n, 1, 10000}]
CROSSREFS
KEYWORD
base,more,nonn
AUTHOR
Ryan Propper, Aug 06 2005
EXTENSIONS
Terms a(20)-a(25) from Lars Blomberg, Jul 05 2011
STATUS
approved