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.

A066352 Pillai sequence: a(n) is the smallest term in A007924 requiring n primes.

Original entry on oeis.org

0, 1, 4, 27, 1354, 401429925999155061
Offset: 0

Views

Author

Copied from www.primepuzzles.net by Frank Ellermann, Dec 19 2001

Keywords

Comments

a(5) computed independently in 2007 by R. J. Mathar and Luca & Thangadurai, both using Thomas Nicely's tables.
On Cramer's conjecture, the number of primes required is O(log* n), where log* is the iterated logarithm, so the rate of growth of a(n) is tetrational in n. - Charles R Greathouse IV, Aug 28 2010
The next term likely has hundreds of millions of digits. - Charles R Greathouse IV, Jun 29 2015

Examples

			The greatest prime <= 27 is 23; the greatest prime <= 27-23 is 3; 27-23-3 = 1, so the Pillai representation of 27 is 23+3+1, which uses more terms than all preceding numbers.
		

References

  • S. S. Pillai, "An arithmetical function concerning primes", Annamalai University Journal (1930), pp. 159-167.

Crossrefs

Cf. A007924.

Programs

Formula

a(n) = 2*p(m) - p(m-1) with minimal m = pi(a(n)) so that p(m) = a(n-1) + p(m-1), where p(n) is A008578(n).

Extensions

Edited by Charles R Greathouse IV, Oct 28 2009
Entry rewritten by Charles R Greathouse IV, Aug 28 2010