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.

A127917 Product of three numbers: n-th prime, previous number, and following number.

Original entry on oeis.org

6, 24, 120, 336, 1320, 2184, 4896, 6840, 12144, 24360, 29760, 50616, 68880, 79464, 103776, 148824, 205320, 226920, 300696, 357840, 388944, 492960, 571704, 704880, 912576, 1030200, 1092624, 1224936, 1294920, 1442784, 2048256, 2247960, 2571216, 2685480, 3307800
Offset: 1

Views

Author

Artur Jasinski, Feb 06 2007

Keywords

Comments

a(n) is the order of the matrix group SL(2,prime(n)). - Tom Edgar, Sep 28 2015

Crossrefs

Programs

  • Magma
    [6] cat [NthPrime(n)*(NthPrime(n)^2-1): n in [2..40]]; // Vincenzo Librandi, Sep 29 2015
  • Mathematica
    Table[(Prime[n] + 1) Prime[n](Prime[n] - 1), {n, 1, 100}]
    Table[p(p^2-1),{p,Prime[Range[40]]}] (* Harvey P. Dale, Apr 26 2025 *)
  • PARI
    forprime(p=2,1e3,print1(6*binomial(p+1,3)", ")) \\ Charles R Greathouse IV, Jun 16 2011
    
  • PARI
    a(n) = prime(n)*(prime(n)^2-1);
    vector(40, n, a(n)) \\ Altug Alkan, Sep 28 2015
    

Formula

a(n) = prime(n)*(prime(n)^2-1). - Tom Edgar, Sep 28 2015
a(n) = 2 * A117762(n), for n > 1. - Altug Alkan, Sep 28 2015
From Amiram Eldar, Nov 22 2022: (Start)
Product_{n>=1} (1 + 1/a(n)) = A065487.
Product_{n>=1} (1 - 1/a(n)) = A065470. (End)