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.

A060424 Record-setting n's for the function q(n), the minimum prime q such that n(q+1)-1 is prime p (i.e., q(n) > q(j) for all 0 < j < n).

Original entry on oeis.org

1, 3, 7, 13, 31, 51, 101, 146, 311, 1332, 2213, 6089, 10382, 11333, 32003, 83633, 143822, 176192, 246314, 386237, 450644, 1198748, 2302457, 5513867, 9108629, 11814707, 16881479, 18786623, 24911213, 28836722, 34257764, 196457309
Offset: 1

Views

Author

Matthew Conroy, Apr 10 2001

Keywords

Examples

			a(3)=7, since q(7)=5 and q(j) < 5 for 0 < j < 7.
		

Crossrefs

Cf. A060324. See A062252 and A062256 for the corresponding values of q and p.

Programs

  • Mathematica
    q[n_] := Module[{p = 2}, While[! PrimeQ[n*(p+1)-1], p = NextPrime[p]]; p]; record = 0; a[0] = 0; a[n_] := a[n] = For[k = a[n-1]+1, True, k++, If[q[k] > record, record = q[k]; Print[k]; Return[k]]]; Table[a[n], {n, 1, 32}] (* Jean-François Alcover, Nov 18 2013 *)

A062252 Record-setting values of q(n), the minimal prime q such that n(q+1)-1 is a prime p (i.e., q(n) > q(j) for all 0 < j < n).

Original entry on oeis.org

2, 3, 5, 7, 13, 19, 23, 41, 71, 109, 179, 239, 269, 347, 353, 443, 503, 509, 617, 641, 701, 773, 881, 971, 977, 1013, 1019, 1103, 1109, 1223, 1559, 1607, 1709, 1889, 2063, 2297, 2663, 2963, 3137
Offset: 1

Views

Author

N. J. A. Sloane, Jul 01 2001

Keywords

Examples

			31 = (433+1)/(13+1).
		

Crossrefs

Cf. A060324, A062251. Values of n are in A060424, values of p in A062256.

Extensions

a(36)-a(39) from Amiram Eldar, Jan 26 2019
Showing 1-2 of 2 results.