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.

A084754 Triangle read by rows: row n lists the first n primes greater than n.

Original entry on oeis.org

2, 3, 5, 5, 7, 11, 5, 7, 11, 13, 7, 11, 13, 17, 19, 7, 11, 13, 17, 19, 23, 11, 13, 17, 19, 23, 29, 31, 11, 13, 17, 19, 23, 29, 31, 37, 11, 13, 17, 19, 23, 29, 31, 37, 41, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59
Offset: 1

Views

Author

Amarnath Murthy and Jason Earls, Jul 12 2003

Keywords

Examples

			Triangle starts:
  2;
  3,  5;
  5,  7, 11;
  5,  7, 11, 13;
  7, 11, 13, 17, 19;
  7, 11, 13, 17, 19, 23;
  ...
		

Crossrefs

Programs

  • Magma
    [NthPrime(#PrimesUpTo(n) + k): k in [1..n], n in [1..16]]; // G. C. Greubel, May 13 2023
    
  • Mathematica
    Table[Prime[PrimePi[n]+k], {n,16}, {k,n}]//Flatten (* G. C. Greubel, May 13 2023 *)
  • SageMath
    def A084754(n,k): return nth_prime(prime_pi(n)+k)
    flatten([[A084754(n,k) for k in range(1,n+1)] for n in range(1,17)]) # G. C. Greubel, May 13 2023

Formula

From G. C. Greubel, May 13 2023: (Start)
T(n, k) = prime(PrimePi(n) + k).
T(n, 1) = A151800(n).
T(n, 2) = A101300(n). (End)

Extensions

Edited by David Wasserman, Jan 05 2005