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

A128933 A103828(n) + 1.

Original entry on oeis.org

2, 4, 10, 28, 70, 430, 1060, 56500, 166840, 5020060, 7681810, 274343590, 8316187180
Offset: 1

Views

Author

N. J. A. Sloane, Apr 28 2007

Keywords

A093483 a(1) = 2; for n>1, a(n) = smallest integer > a(n-1) such that a(n) + a(i) + 1 is prime for all 1 <= i <= n-1.

Original entry on oeis.org

2, 4, 8, 14, 38, 98, 344, 22268, 79808, 187124, 347978, 2171618, 4219797674, 98059918334, 22518029924768, 54420534706118, 252534792143648
Offset: 1

Views

Author

Amarnath Murthy, Apr 14 2004

Keywords

Comments

a(i) == 2 mod 6 for i > 2. - Walter Kehowski, Jun 03 2006
a(i) == either 8 or 14 (mod 30) for i > 2. - Robert G. Wilson v, Oct 16 2012
The Hardy-Littlewood k-tuple conjecture would imply that this sequence is infinite. Note that, for n > 2, a(n)+3 and a(n)+5 are both primes, so a proof that this sequence is infinite would also show that there are infinitely many twin primes. - N. J. A. Sloane, Apr 21 2007
No more terms less than 7*10^12. - David Wasserman, Apr 03 2007

Examples

			a(5) = 38 because 38+2+1, 38+4+1, 38+8+1 and 38+14+1 are all prime.
		

Crossrefs

Programs

  • Haskell
    a093483 n = a093483_list !! (n-1)
    a093483_list = f ([2..7] ++ [8,14..]) [] where
       f (x:xs) ys = if all (== 1) $ map (a010051 . (+ x)) ys
                        then x : f xs ((x+1):ys) else f xs ys
    -- Reinhard Zumkeller, Dec 11 2011
  • Maple
    EP:=[2,4]: P:=[]: for w to 1 do for n from 1 to 800*10^6 do s:=6*n+2; Q:=map(z-> z+s+1); if andmap(isprime,Q) then EP:=[op(EP),s]; P:=[op(P),op(Q)] fi; od od; EP; P: # Walter Kehowski, Jun 03 2006
  • Mathematica
    f[1] = 2; f[2] = 4; f[3] = 8; f[n_] := f[n] = Block[{lst = Array[f, n - 1], k = f[n - 1] + 7}, While[ Union[ PrimeQ[k + lst]] != {True}, k += 6]; k-1]; Array[f, 13] (* Robert G. Wilson v, Oct 16 2012 *)

Extensions

a(7) from Jonathan Vos Post, Mar 22 2006
More terms from Joshua Zucker, Jul 24 2006
Edited and extended to a(14) by David Wasserman, Apr 03 2007
a(15)-a(17) from Don Reble, added by N. J. A. Sloane, Sep 18 2012

A115760 Slowest growing sequence of numbers having the prime-pairwise-average property: if i

Original entry on oeis.org

3, 7, 19, 55, 139, 859, 2119, 112999, 333679, 10040119, 15363619, 548687179, 16632374359, 5733638351299, 14360489685499, 433098704482699, 44258681327079259, 5009018648920510999
Offset: 1

Views

Author

Zak Seidov, Jan 30 2006

Keywords

Comments

Inspired by A113875 (case of prime numbers). See A113832 minimal sets of primes having the P-P-A property, A115782 primes in A115760.
Equals 2*A103828(n) + 1. - N. J. A. Sloane, Apr 28 2007. This sequence is surely infinite - see comments in A103828.
After a(4), terms are == 19 mod 60. The sequence may also be defined by "a(1)=3 and for n>1, a(n) is the smallest number of the form 4k+3, a(n)>a(n-1) such that the pairwise sums of all elements are semiprimes." - Don Reble, Aug 17 2021

Examples

			The pairwise averages of {3,7,19} are the primes {5,11,13}.
		

Crossrefs

Formula

a(n) == 19 (mod 60) for n>4 [consequence of mod 30 congruence of A103828(n).] - Don Reble, Aug 17 2021

Extensions

More terms from Don Reble and Giovanni Resta, Feb 15 2006
More terms from Don Reble, Aug 17 2021

A115782 Primes generated by pairwise averages of terms in A115760.

Original entry on oeis.org

5, 11, 13, 29, 31, 37, 71, 73, 79, 97, 431, 433, 439, 457, 499, 1061, 1063, 1069, 1087, 1129, 1489, 56501, 56503, 56509, 56527, 56569, 56929, 57559, 166841, 166843, 166849, 166867, 166909, 167269, 167899, 223339, 5020061, 5020063, 5020069
Offset: 1

Views

Author

Zak Seidov, Jan 30 2006

Keywords

Comments

Also primes arising from A103828. - N. J. A. Sloane, Apr 28 2007

Examples

			The pairwise averages of first three terms in A115760, {3,7,19} produce the set of primes {5,11,13}.
		

Crossrefs

A037100 Lexically first set of (even) numbers, beginning with 4, such that for any two different terms, a(i) + a(j) + 1 is prime.

Original entry on oeis.org

4, 6, 12, 24, 54, 186, 3246, 25926, 169314, 412026, 541524, 37949286, 124716066, 324532464, 26678398374, 3559613215806, 30751771983294, 20116294396883346
Offset: 1

Views

Author

Keywords

Examples

			4+54+1 is prime.
		

Crossrefs

Extensions

Edited and extended with a(15)-a(18) by Don Reble, Feb 13 2019

A291163 a(n) = smallest number k > a(n-1) maximizing the number of primes in all sums a(j)+k, j=1..(n-1), with a(1)=2.

Original entry on oeis.org

2, 3, 4, 9, 10, 27, 34, 69, 70, 429, 430, 1059, 1484, 3537, 8284, 65169, 98464, 2061999, 2210564, 10919799, 11521580, 495385137, 567955604, 1112946057, 4926960394, 365847990027
Offset: 1

Views

Author

Rainer Rosenthal and Hugo Pfoertner, Oct 07 2017

Keywords

Examples

			a(6)=27 because it is the smallest number producing 3 primes in the sums with all previous terms: a(1)+27 = 2+27 = 29, a(3)+27 = 4+27 = 31, a(5)+27 = 10+27 = 37;
a(7)=34: a(2)+34 = 3+34 = 37, a(4)+34 = 9+34 = 43, a(6)+34 = 27+34 = 61;
a(8)=69 because it is the smallest number producing 4 primes in the sums with all previous terms: a(1)+69 = 2+69 = 71, a(3)+69 = 4+69 = 73, a(5)+69 = 10+69 = 79, a(7)+69 = 34+69 = 103.
		

Crossrefs

Programs

  • PARI
    PT(x)={print1(x,", ");write("b291163.txt",n++," ",x)};
    n=0;
    ae=vector(11);
    ao=vector(11);
    ae[1]=2;PT(ae[1]);
    ao[1]=3;PT(ao[1]);
    for (m=1,10,\
       start=(ao[m]+1)/2;\
       for (kh=start,100*start,k=kh+kh;\
          for(jj=1,m,j=m-jj+1;if(!isprime(k+ao[j]),next(2)));\
          ae[m+1]=k;PT(k);break(1));\
       start=ae[m+1]/2;\
       for (kh=start,100*start,k=kh+kh+1;\
          for(jj=1,m+1,j=m-jj+2;if(!isprime(k+ae[j]),next(2)));\
          ao[m+1]=k;PT(k);break(1)))
    \\ Hugo Pfoertner, Oct 10 2017

A120402 a(1)=2; a(n)=first even number greater than a(n-1) such that 2*a(n)-1 is prime and a(i)+a(n)-1 is prime for all 1<=i<=n-1.

Original entry on oeis.org

2, 4, 10, 70, 430, 4090, 86530, 513100, 913570, 7914340, 6593621380, 9366241600
Offset: 1

Views

Author

Walter Kehowski, Jul 02 2006

Keywords

Comments

All elements after the first are 4 mod 6. In base 12 the sequence is 2, 4, X, 5X, 2EX, 244X, 420XX, 208E24, 38082X, 2798084, where X is 10 and E is eleven.

Examples

			a(2)=4 since 4 is the first even number > a(1)=2 such that 2*4-1=7 is prime and 4+2-1=5 is prime.
		

Crossrefs

Programs

  • Maple
    EP:=[2]: for w to 1 do for k from 0 to 12^8 do n:=6*k+4; p:=2*n-1; Q:=map(z-> z+n-1, EP); if isprime(p) and andmap(isprime,Q) then EP:=[op(EP),n]; print(n); fi od od;

Formula

a(1)=2; a(n) = s where s is the first even number s>a(n-1) such that 2*s-1 is prime and s+a(i)-1 is prime, 1<=i<=n-1.

Extensions

a(11)-a(12) from Bert Dobbelaere, Apr 17 2019

A120403 a(1)=3; a(n)=first odd number greater than a(n-1) such that 2*a(n)-1 is prime and a(i)+a(n)-1 is prime for all 1<=i<=n-1.

Original entry on oeis.org

3, 9, 15, 45, 225, 639, 1275, 4005, 675405, 2203959, 3075159, 6195234165, 77989711185, 4566262987329
Offset: 1

Views

Author

Walter Kehowski, Jul 02 2006

Keywords

Comments

All elements are 3 mod 6. In base 12 the sequence is 3, 9, 13, 39, 169, 453, 8X3, 2399, 286X39, 8X3533, 1043733, where X is 10 and E is eleven.

Examples

			a(2)=9 since 9 is the first odd number > a(1)=3 such that 2*9-1=17 is prime and 9+3-1=13 is prime.
		

Crossrefs

Cf. A119752, A119754 (resulting primes), A119751, A119753, A103828.

Programs

  • Maple
    OP:=[3]: for w to 1 do for k from 0 to 12^8 do n:=6*k+3; p:=2*n-1; Q:=map(z-> z+n-1, OP); if isprime(p) and andmap(isprime,Q) then OP:=[op(OP), n]; print(n); fi od od;

Formula

a(1)=3; a(n) = s where s is the first odd number s>a(n-1) such that 2*s-1 is prime and s+a(i)-1 is prime, 1<=i<=n-1.
a(n) = A119752(n) + 1. - Chandler

Extensions

a(12)-a(14) from Ray Chandler, Apr 04 2010

A127903 Primes arising in A093483.

Original entry on oeis.org

7, 11, 13, 17, 19, 23, 41, 43, 47, 53, 101, 103, 107, 113, 137, 347, 349, 353, 359, 383, 443, 22271, 22273, 22277, 22283, 22307, 22367, 22613, 79811, 79813, 79817, 79823, 79847, 79907, 80153, 102077, 187127, 187129, 187133, 187139, 187163, 187223
Offset: 1

Views

Author

Jonathan Vos Post, Apr 05 2007

Keywords

Crossrefs

Extensions

Data corrected by Giovanni Resta, Jun 19 2016
Showing 1-9 of 9 results.