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.

A023524 Number of distinct prime divisors of prime(n)*prime(n-1) + 1.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

This is taking prime(0)=1. - Robert Israel, Dec 22 2015

Programs

  • Magma
    [#PrimeDivisors((NthPrime(n)*(NthPrime(n-1))+1)): n in [1..100]]; // Vincenzo Librandi, Dec 23 2015
  • Maple
    1,seq(nops(numtheory:-factorset(ithprime(n)*ithprime(n-1)+1)), n=2..100); # Robert Israel, Dec 22 2015
  • Mathematica
    Prepend[Table[PrimeNu[Prime@ n Prime[n - 1] + 1], {n, 2, 80}], 1] (* Michael De Vlieger, Dec 22 2015 *)
  • PARI
    a(n) = if (n==1, 1, omega(prime(n)*prime(n-1) + 1)); \\ Michel Marcus, Dec 22 2015