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.

A260235 Number of distinct prime factors of the n-th hexagonal number (A000384).

Original entry on oeis.org

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

Views

Author

Colin Barker, Jul 20 2015

Keywords

Examples

			a(6) = 3 because A000384(6) = 66 = 2 * 3 * 11.
		

Crossrefs

Programs

  • Mathematica
    PrimeNu[PolygonalNumber[6,Range[2,90]]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 23 2017 *)
  • PARI
    pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
    a(n) = omega(pg(6, n))

Formula

a(n) = A001221(A000384(n)).