OFFSET
1,2
COMMENTS
Essentially the same as A074399, which has many comments, references and links.
EXAMPLE
A000217(9) = 9*(9+1)/2 = 45 = 3*3*5, therefore a(9) = 5.
MATHEMATICA
PrimeFactors[n_]:=Flatten[Table[ #[[1]], {1}]&/@FactorInteger[n]]; Table[PrimeFactors[n*(n-1)/2][[ -1]], {n, 2, 6!}] (* Vladimir Joseph Stephan Orlovsky, Aug 12 2009 *)
(* Second program: *)
Array[FactorInteger[PolygonalNumber[#]][[-1, 1]] &, 66] (* Michael De Vlieger, Sep 14 2023 *)
PROG
(PARI) \\ written for a(n), n >= 2
a(n)=vecmax(factor(n*(n+1)/2)[, 1]) \\ M. F. Hasler, May 02 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Apr 10 2002
EXTENSIONS
Edited by Peter Munn, Sep 14 2023
STATUS
approved