OFFSET
3,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 3..10000
MATHEMATICA
lpf[n_] := Module[{p = 2}, While[! Divisible[n, p], p = NextPrime[p]]; Array[lpf[Subfactorial[#]] &, 50, 3]
PROG
(PARI) lpf(n) = {my(p = 2); while(n % p, p = nextprime(p+1)); p; }
lista(nmax) = {my(s = 1); for(n = 3, nmax, s = n * s + (-1)^n; print1(lpf(s), ", ")); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 18 2024
STATUS
approved