OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
MATHEMATICA
Table[Mod[n!, 3^n], {n, 0, 30}] (* Harvey P. Dale, Apr 01 2018 *)
PROG
(Python)
import math
print([math.factorial(n)%(3**n) for n in range(99)])
(PARI) a(n) = n! % 3^n; \\ Michel Marcus, Jan 22 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Oct 24 2013
STATUS
approved