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

A083677 Define f(n, k) to be the concatenation of the first n primes, with n-1 k's inserted between the primes. Then a(n) is the smallest k >= 0 such that f(n, k) is prime, or -1 if no such prime exists.

Original entry on oeis.org

0, 2, -1, 1, 4, 10, 38, 20, 0, -1, 163, 46, 8, 53, 0, -1, 74, 5, 8, 5, 180, 4, 280, 191, 0, 337, 191, -1, 105, 88, 19, 28, 111, -1, 525, 13, 24, 102, 159, -1, 288, 142, 31, 743, 81, -1, 183, 202, 100, 96, 380, -1, 1227, 5, 113, 123, 20, 23, 0, 48, 148, 438, 52, 144, 128, 297, 206
Offset: 1

Views

Author

Farideh Firoozbakht, Jun 15 2003

Keywords

Comments

a(3) = -1 because f(3, k) is always a multiple of 5. For any n such that n = 1 (mod 3) and A007504(n) = 0 (mod 3), a(n) = -1 because f(n, k) is always a multiple of 3. It is my conjecture that for all other n, -1 < a(n) < n*p(n). I've checked for all n < 270.

Examples

			a(4) = 1 because 2030507 is composite and 2131517 is prime.
		

Crossrefs

A082549 gives the n such that a(n) = 0. A083684 gives the n such that a(n)=-1.

Programs

  • Mathematica
    fpkQ[k_, n_] := PrimeQ[ FromDigits[ Flatten[ IntegerDigits /@ Insert[ Table[ Prime[i], {i, k}], n, Table[{i}, {i, 2, k}]]]]]; a[1] = 0; a[3] = a[10] = a[16] = a[28] = a[34] = a[40] = a[46] = a[52] = a[70] = a[76] = a[82] = a[88] = a[97] = -1; a[n_] := Block[{k = 0}, While[ fpkQ[n, k] != True, k++ ]; k]; Table[ a[n], {n, 70}] (* Robert G. Wilson v, Dec 11 2004 *)

Extensions

Edited and extended by Robert G. Wilson v, Dec 11 2004

A083684 Numbers k such that there is no nonnegative integer m such that m < k*prime(k) and the concatenated decimal number fp(k,m) = prime(1).m.prime(2).m. ... .prime(k-1).m.prime(k) is prime.

Original entry on oeis.org

3, 10, 16, 28, 34, 40, 46, 52, 70, 76, 82, 88, 97, 103, 121, 127, 136, 163, 166, 169, 175, 187, 199, 205, 211, 217, 220, 235, 250, 262, 268
Offset: 1

Views

Author

Farideh Firoozbakht, Jun 15 2003

Keywords

Comments

If k == 1 (mod 3) and 3 divides 2 + 3 + 5 + ... + prime(k) then k
is in the sequence. I conjecture that 3 is the only term of the sequence which is not of this form.

Examples

			For each m, fp(1,m)=2 is prime so 1 is not in the sequence.
fp(2,2) = 2.2.3 = 223 is prime and 2 < 2*prime(2) so 2 isn't in the sequence. Also for each m, 5 divides fp(3,m) = 2.m.3.m.5 so fp(3,m) is composite and we deduce that 3 is in the sequence.
		

Crossrefs

Programs

  • PARI
    is(k) = for(m=0, k*prime(k), if(ispseudoprime(eval(concat(concat([""], vector(2*k-1, i, if(i%2, prime(1+i\2), m)))))), return(0))); 1; \\ Jinyuan Wang, Apr 10 2020

Extensions

Corrected and edited by Farideh Firoozbakht, Nov 04 2013

A083750 Numbers n such that 2111131111...p(n-1)1111p(n) is prime.

Original entry on oeis.org

85, 145, 304, 915
Offset: 1

Views

Author

Farideh Firoozbakht, Jun 17 2003

Keywords

Comments

Let fp(n,k) be the decimal concatenation of prime(n), k, and fp(n-1,k) for n > 1, and fp(1,k) = 2. Then a(n) = fp(n, 1111).
No more terms up to 6300.

Examples

			a(1)=85 because fp(85,1111)= 211113111151111...4331111439 is prime and fp(k,1111) is composite for k< 85 (prime(85)=439).
a(3)=304 because fp(304,1111)=211113111151111...199911112003 is a prime related to prime year 2003; this prime number has 2231 digits. fp(915,1111)=211113111151111...712911117151 is a prime with 7119 digits (prime(915)=7151).
		

Crossrefs

Extensions

Comment from Charles R Greathouse IV, Oct 12 2009
Showing 1-3 of 3 results.