OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Least Prime Factor
Eric Weisstein's World of Mathematics, Partition Function
Eric Weisstein's World of Mathematics, Partition Function P Congruences
EXAMPLE
A000041(100) = 190569292 = 2*2*43*59*89*211, therefore a(100)=2.
MATHEMATICA
FactorInteger[#][[1, 1]]&/@PartitionsP[Range[90]] (* Harvey P. Dale, May 20 2023 *)
PROG
(PARI) spf(n) = if (n==1, 1, vecmin(factor(n)[, 1]));
a(n) = spf(numbpart(n)); \\ Michel Marcus, Feb 24 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 23 2003
STATUS
approved