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.

A366580 Number of distinct prime divisors of 3^n + 1.

Original entry on oeis.org

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

Views

Author

Sean A. Irvine, Oct 13 2023

Keywords

Crossrefs

Programs

  • Mathematica
    PrimeNu[3^Range[0,100]+1] (* Paolo Xausa, Oct 14 2023 *)
  • PARI
    for(n = 0, 100, print1(omega(3^n + 1), ", "))

Formula

a(n) = omega(3^n+1) = A001221(A034472(n)).