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-1 of 1 results.

A329920 Smallest k such that 6*k*A121940(n)-1 and 6*k*A121940(n)+1 are twin primes.

Original entry on oeis.org

1, 2, 2, 15, 36, 10, 13, 26, 30, 228, 24, 138, 520, 59, 110, 456, 700, 670, 146, 300, 390, 53, 2335, 340, 159, 340, 65, 475, 785, 1145, 759, 3557, 490, 169, 990, 1527, 704, 3379, 1426, 1927, 2397, 600, 1603, 4809, 9815, 58, 35, 364, 361, 123, 2197, 4054, 1867, 1827, 5048
Offset: 1

Views

Author

Pierre CAMI, Nov 24 2019

Keywords

Examples

			A121940(1)=7, 6*1*7-1=41, 41 and 43 are twin primes so a(1)=1.
A121940(2)=91, 6*2*91-1=1091, 1091 and 1093 are twin primes so a(2)=2.
		

Crossrefs

Programs

  • PARI
    lista(nn) = {my(pp = 1); forprime (p = 1, nn, if (Mod(p, 6) == +1, pp *= p; my(k=1); while (!isprime(6*k*pp-1) || !isprime(6*k*pp+1), k++); print1(k, ", ");););} \\ Michel Marcus, Nov 25 2019
Showing 1-1 of 1 results.