OFFSET
0,3
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
EXAMPLE
a(6) = 2 because A000178(6) = 24883200.
PROG
(PARI) a(n) = digits(prod(k=2, n, k!))[1]; \\ Michel Marcus, Feb 26 2020
(Python)
def A332842(n):
m, k = 1, 1
for i in range(2, n+1):
k *= i
m *= k
return int(str(m)[0]) # Chai Wah Wu, Mar 17 2020
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Eder Vanzei, Feb 26 2020
STATUS
approved