OFFSET
1,2
EXAMPLE
9 is a term because the sum of the digits of 3^9 * 9! = 7142567040 is 36 which is divisible by 9.
MATHEMATICA
Do[If[Mod[Plus @@ IntegerDigits[3^n * n!], n] == 0, Print[n]], {n, 1, 10000}]
PROG
(PARI) isok(k) = !(sumdigits(3^k * k!) % k);
CROSSREFS
KEYWORD
nonn,base,hard
AUTHOR
Kevin P. Thompson, Oct 21 2021
EXTENSIONS
a(36)-a(39) from Martin Ehrenstein, Nov 19 2021
STATUS
approved