cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A271322 Largest prime factor of the n-th n-gonal number (A060354).

Original entry on oeis.org

2, 3, 2, 7, 11, 7, 11, 29, 37, 23, 7, 67, 79, 23, 53, 17, 137, 19, 43, 191, 211, 29, 127, 277, 43, 163, 11, 379, 37, 109, 233, 71, 23, 281, 149, 631, 29, 13, 53, 71, 821, 431, 113, 947, 991, 47, 541, 1129, 107, 613, 29, 1327, 197, 179, 743, 67, 1597, 827
Offset: 2

Views

Author

Colin Barker, Apr 04 2016

Keywords

Examples

			a(5) = 7 because A060354(5) = 35 = 5 * 7.
		

Crossrefs

Programs

  • PARI
    pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
    lpf(m) = vecmax(factorint(m)[, 1]) \\ Largest prime factor
    a(n) = lpf(pg(n, n))
    vector(100, n, n++; a(n))

Formula

a(n) = A006530(A060354(n)).