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.

Showing 1-2 of 2 results.

A218012 Decimal expansion of -sqrt(7) + sqrt(11), Andrica's Maximum A_n.

Original entry on oeis.org

6, 7, 0, 8, 7, 3, 4, 7, 9, 2, 9, 0, 8, 0, 9, 2, 5, 8, 6, 1, 3, 3, 1, 6, 9, 8, 3, 0, 3, 1, 4, 2, 6, 2, 5, 8, 2, 1, 6, 8, 2, 9, 3, 6, 2, 5, 0, 6, 9, 0, 3, 4, 1, 6, 6, 9, 0, 3, 4, 7, 6, 8, 6, 9, 1, 5, 4, 1, 5, 8, 1, 9, 3, 7, 8, 7, 6, 0, 2, 1, 8, 9, 4, 8, 4, 5, 0, 5, 1, 2, 6, 5, 3, 7, 4, 7, 0, 4, 0, 2, 9, 1, 9, 4, 7
Offset: 0

Views

Author

Marek Wolf and Robert G. Wilson v, Oct 18 2012

Keywords

Comments

For each consecutive prime pair, p and q with p < q, d = -sqrt(p) + sqrt(q) is unique. Place d in order from greatest to least and specify p. This is the maximum d.

Examples

			0.670873479290809258613316983031426258216829362506903416690347686915...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[- Sqrt[7] + Sqrt[11], 10, 111][[1]]

A218014 Location of the n-th prime in its Andrica ranking.

Original entry on oeis.org

27, 6, 13, 1, 31, 4, 54, 8, 3, 100, 5, 25, 155, 28, 9, 16, 243, 19, 49, 288, 21, 62, 24, 12, 75, 422, 81, 444, 84, 2, 112, 37, 580, 11, 634, 47, 53, 150, 57, 60, 788, 20, 840, 183, 872, 10, 14, 218, 1029, 228, 80, 1074, 26, 87, 92, 99, 1237, 103, 281, 1319, 29, 15, 314, 1498, 323
Offset: 1

Views

Author

Marek Wolf and Robert G. Wilson v, Oct 18 2012

Keywords

Comments

For each consecutive prime pair p < q, d = sqrt(q) - sqrt(p) is unique. Place d in order from greatest to least and specify p.
Last appearance by prime index: 1, 5, 7, 10, 13, 17, 20, 26, 28, 33, 35, 41, 43, 45, 49, ..., .
Last appearance of a minimum prime by Andrica ranking: 2, 11, 17, 29, 41, 59, 71, 101, 107, 137, 149, 179, ..., .
As expected, this sequence is the lesser of the twin primes beginning with the second term, 11. See A001359.

Examples

			a(1)=27 since the first prime, 2, does not show up in the ranking until the 27th term. See A218013.
a(4)=1 since the fourth prime, 7, has the maximum A_n value, see A218012; i.e., sqrt(p_n)-sqrt(p_n+1) is at a maximum.
		

Crossrefs

Programs

  • Mathematica
    lst = {}; p = 2; q = 3; While[p < 1600000, If[ Sqrt[q] - Sqrt[p] > 1/20, AppendTo[lst, {p, Sqrt[q] - Sqrt[p]}]]; p = q; q = NextPrime[q]]; lsu = First@ Transpose@ Sort[lst, #1[[2]] > #2[[2]] &]; Table[ Position[lsu, p, 1, 1], {p, Prime@ Range@ 65}] // Flatten
Showing 1-2 of 2 results.