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.

A263770 Smallest prime q such that (prime(n)^2 + q*prime(n))/(prime(n) + 1) is an integer.

Original entry on oeis.org

7, 5, 7, 17, 13, 29, 19, 41, 73, 31, 97, 191, 43, 89, 97, 109, 61, 311, 137, 73, 149, 241, 337, 181, 197, 103, 313, 109, 331, 229, 257, 397, 139, 281, 151, 457, 317, 821, 337, 349, 181, 547, 193, 389, 199, 401, 1061, 449, 229, 461, 937, 241, 727, 757, 1033, 1321, 271, 1361, 557
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Oct 25 2015

Keywords

Comments

Least prime q such that q == 1 (mod prime(n) + 1).

Crossrefs

Programs

  • Mathematica
    Table[q = 2; While[! IntegerQ[(Prime[n]^2 + q Prime@ n)/(Prime@ n + 1)], q = NextPrime@ q]; q, {n, 59}] (* Michael De Vlieger, Oct 26 2015 *)
  • PARI
    a(n) = {p = prime(n); q = 2; while ((p^2 + p*q) % (p + 1), q = nextprime(q+1)); q;} \\ Michel Marcus, Oct 26 2015

Formula

5 is in this sequence because (prime(2)^2 + 5*prime(2))/(prime(2) + 1) = 6 and 5 is prime.

A107308 Numbers k such that (29*k - 31) is prime.

Original entry on oeis.org

12, 16, 18, 22, 30, 36, 40, 42, 46, 48, 60, 70, 82, 88, 90, 96, 102, 112, 118, 120, 126, 130, 132, 148, 156, 166, 172, 180, 190, 196, 198, 202, 228, 238, 246, 250, 256, 258, 268, 280, 282, 286, 300, 316, 330, 340, 342, 348, 352, 382, 390, 406, 408, 420, 426
Offset: 1

Views

Author

Parthasarathy Nambi, May 20 2005

Keywords

Comments

29 and 31 are twin primes.

Examples

			If k=48, then 29*k - 31 = 1361 (prime).
		

Crossrefs

Cf. A142003 (the resulting primes).

Programs

Showing 1-2 of 2 results.