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.

Showing 1-3 of 3 results.

A271319 Number of distinct prime factors of the n-th n-gonal number (A060354).

Original entry on oeis.org

1, 2, 1, 2, 3, 2, 2, 2, 3, 3, 3, 2, 3, 4, 2, 2, 3, 4, 3, 3, 3, 3, 3, 2, 4, 3, 3, 2, 5, 3, 2, 4, 3, 4, 3, 2, 4, 4, 4, 3, 4, 3, 3, 3, 3, 4, 3, 2, 4, 4, 4, 2, 4, 4, 3, 4, 3, 3, 4, 4, 3, 5, 2, 3, 4, 4, 4, 4, 4, 3, 4, 2, 4, 5, 3, 3, 4, 3, 4, 3, 4, 4, 5, 4, 3, 4
Offset: 2

Views

Author

Colin Barker, Apr 04 2016

Keywords

Examples

			a(7) = 2 because A060354(7) = 112 = 2^4 * 7^1.
		

Crossrefs

Programs

  • Mathematica
    Table[PrimeNu[PolygonalNumber[n,n]],{n,2,90}] (* Harvey P. Dale, Sep 24 2023 *)
  • PARI
    pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
    a(n) = omega(pg(n, n))
    vector(100, n, n++; a(n))

Formula

a(n) = A001221(A060354(n)).

A271320 Number of prime factors, with multiplicity, of the n-th n-gonal number (A060354).

Original entry on oeis.org

1, 2, 4, 2, 3, 5, 5, 3, 3, 3, 7, 2, 3, 5, 6, 3, 4, 4, 6, 3, 3, 5, 6, 3, 4, 5, 9, 2, 5, 4, 7, 4, 4, 4, 7, 2, 4, 9, 7, 3, 4, 3, 7, 4, 3, 5, 7, 3, 5, 4, 7, 2, 6, 6, 6, 4, 3, 3, 9, 4, 3, 7, 8, 3, 4, 4, 7, 4, 4, 6, 8, 2, 4, 6, 7, 3, 4, 4, 8, 6, 4, 4, 8, 4, 3, 6
Offset: 2

Views

Author

Colin Barker, Apr 04 2016

Keywords

Examples

			a(7) = 5 because A060354(7) = 112 = 2^4 * 7^1.
		

Crossrefs

Programs

  • Mathematica
    PrimeOmega/@Table[PolygonalNumber[n,n],{n,90}] (* Harvey P. Dale, Feb 08 2025 *)
  • PARI
    pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
    a(n) = bigomega(pg(n, n))
    vector(100, n, n++; a(n))

Formula

a(n) = A001222(A060354(n)).

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)).
Showing 1-3 of 3 results.