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.

A179234 a(n) is the smallest prime q such that, for the previous prime p and the following prime r, the fraction (r-q)/(q-p) has denominator n in lowest terms.

Original entry on oeis.org

3, 11, 29, 367, 149, 521, 127, 1847, 1087, 1657, 1151, 4201, 2503, 2999, 5779, 10831, 1361, 9587, 30631, 19373, 16183, 36433, 81509, 28277, 31957, 25523, 40343, 82129, 44351, 102761, 34123, 89753, 282559, 134581, 173429, 705389, 404671, 212777, 371027, 1060861, 265703, 461801, 156007, 544367, 576881, 927961, 1101071, 1904407, 604171, 396833
Offset: 1

Views

Author

Vladimir Shevelev, Jan 05 2011

Keywords

Comments

The conjecture that a(n) exists for every n is a weaker conjecture than a related one in the comment to A179210.

Examples

			For q=3 we have (r-q)/(q-p)=2/1. Therefore, a(1)=3.
For q=5: (r-q)/(q-p) = 1/1; for q = 7: (r-q)/(q-p) = 2/1; for q = 11: (r-q)/(q-p) = 1/2. Therefore, a(2)=11.
		

Crossrefs

Programs

Extensions

Revised definition, new program, and terms past a(5) from Charles R Greathouse IV, Jan 12 2011

A279066 Least prime q such that (q-p)/(r-q), where pA038566/A038567.

Original entry on oeis.org

5, 3, 31, 23, 8123, 89, 139, 7963, 337, 409, 199, 797, 45439, 113, 953, 88547, 293, 2633, 1933, 3643, 137029, 13381, 523, 2861, 1381, 1259, 7621, 7433, 156157, 3089, 546781, 30911, 1951, 294563, 1129, 3229, 285871, 10369, 14221, 3651341, 25819, 3967, 1669, 6173, 23473, 51383
Offset: 1

Views

Author

Keywords

Comments

Almost a bisection of A275785 with only the term 5 being in both A279066 & A279067.
The union of A279066 & A279067 is A275785 with only 5 as a common term.
1/n = A179210(n).
Records: 5, 31, 8123, 45439, 88547, 137029, 156157, 546781, 3651341, 11931613, 16613347, 54636251, 72510257, 102626747, 148379059, 290018137, 847428851, 1165527283, 8232085373, 32592174133, 40113962921, ..., .

Examples

			Row 1:        1/1                                       5
Row 2:        1/2                                       3
Row 3:     1/3  2/3                                 31      23
Row 4:     1/4  3/4                               8123      89
Row 5: 1/5 2/5  3/5 4/5                      139  7963     337    409
Row 6:     1/6  5/6                                199     797
Row 7:    1/7 .. 6/7                   45439 113   953   88547    293   2633
Row 8: 1/8 3/8  5/8 7/8                     1933  3643  137029  13381
etc.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Block[{p = 2, q = 3, r = 5}, While[q != n(r - q) + p, p = q; q = r; r = NextPrime@ r]; q]; Farey[n_] := Union@ Flatten@ Table[a/b, {b, n}, {a, 0, b}]; ff = Rest@ Reverse@ Sort[ Farey[25], Denominator[#2] < Denominator[#1] &]; f@# & /@ ff
Showing 1-2 of 2 results.