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.

A245908 The number of distinct prime factors of prime(n)^2-1.

Original entry on oeis.org

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

Views

Author

R. J. Mathar, Aug 05 2014

Keywords

Crossrefs

Programs

  • Magma
    [#PrimeDivisors(NthPrime(n)^2 -1): n in [1..100]]; // Vincenzo Librandi, Apr 27 2019
  • Maple
    A245908 := proc(n)
        A082863(ithprime(n)) ;
    end proc:
  • Mathematica
    Table[PrimeNu[Prime[n]^2 - 1], {n, 100}] (* Wesley Ivan Hurt, Aug 05 2014 *)
  • PARI
    vector(100, n, omega(prime(n)^2-1)) \\ Derek Orr, Aug 05 2014
    

Formula

a(n) = A082863(prime(n)).
a(n) = A008334(n) + A008335(n) - 1, if n>1.