OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..137
FORMULA
MATHEMATICA
FactorInteger[#][[1, 1]] & /@ Table[Subfactorial[n + 2]/(n + 1), {n, 1, 44}]
PROG
(PARI) lpf(n) = if(n == 1, 1, factor(n)[1, 1]);
lista(nmax) = {my(s = 1); for(n = 1, nmax, s = (n * (n+2) * s + (-1)^n)/(n+1); print1(lpf(s), ", ")); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 18 2024
STATUS
approved