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.

Previous Showing 41-50 of 112 results. Next

A078855 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[6, 4,2]; short d-string notation of pattern = [642].

Original entry on oeis.org

31, 61, 271, 607, 1291, 1657, 1777, 1861, 1987, 2131, 2371, 2677, 2791, 4507, 5407, 5431, 5641, 7867, 9001, 11821, 13681, 14551, 17377, 18121, 18301, 20347, 21481, 22147, 24097, 27271, 32707, 35521, 36781, 37561, 41221, 41947, 42397, 42451
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A078562. - R. J. Mathar, May 06 2017

Examples

			p=31,31+6=37,31+6+4=41,31+6+4+2=43 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    Transpose[Select[Partition[Prime[Range[4500]],4,1],Differences[#] == {6,4,2}&]][[1]] (* Harvey P. Dale, Feb 10 2015 *)

Formula

Primes p = p(i) such that p(i+1)=p+6, p(i+2)=p+6+4, p(i+3)=p+6+4+2.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A078848 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[2,6,4]; short d-string notation of pattern = [264].

Original entry on oeis.org

29, 59, 71, 269, 431, 1289, 2129, 2339, 2381, 2789, 4721, 5519, 5639, 5849, 6569, 6959, 8999, 10091, 13679, 14549, 16649, 16691, 18119, 19379, 19751, 21491, 25931, 27689, 27791, 28619, 31181, 32369, 32561, 32831, 36779, 41609, 43961, 45119
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A049437. - R. J. Mathar, Feb 10 2013

Examples

			29, 29+2=31, 29+2+6=37, 29+2+6+4=41 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    d = {2, 6, 4}; First /@ Select[Partition[Prime@ Range[10^4], Length@ d + 1, 1], Differences@ # == d &] (* Michael De Vlieger, May 02 2016 *)
    Select[Partition[Prime[Range[4700]],4,1],Differences[#]=={2,6,4}&][[All,1]] (* Harvey P. Dale, Mar 08 2020 *)

Formula

Primes p=p(i) such that p(i+1)=p+2, p(i+2)=p+2+6, p(i+3)=p+2+6+4.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009
Typo in example corrected by Michel Marcus, Dec 28 2013

A078851 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[4, 6, 2]; short d-string notation of pattern = [462].

Original entry on oeis.org

19, 127, 229, 1009, 1279, 1597, 1609, 2539, 3319, 3529, 3907, 3919, 4639, 4789, 4999, 5839, 5857, 7477, 7537, 8419, 9619, 12097, 12907, 13327, 15259, 15877, 17569, 17977, 19069, 22027, 23017, 24967, 27739, 28537, 32359, 33577, 36919, 38317
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A078561. - R. J. Mathar, May 06 2017

Examples

			p=19,19+4=23,19+4+6=29,19+4+6+2=31 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    Select[Prime@ Range[10^4], Differences@ Prime@ Range[#, # + 3] &@ PrimePi@ # == {4, 6, 2} &] (* Michael De Vlieger, Jul 02 2016 *)

Formula

Primes p = p(i) such that p(i+1)=p+4, p(i+2)=p+4+6, p(i+3)=p+4+6+2.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A078852 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[4, 6,6]; short d-string notation of pattern = [466].

Original entry on oeis.org

43, 163, 643, 937, 967, 1093, 1213, 2953, 4003, 4447, 6967, 7573, 8737, 9463, 10243, 10597, 11923, 12487, 12637, 13033, 14533, 14737, 15787, 16087, 16417, 16477, 16927, 17317, 17467, 20113, 22063, 25453, 26683, 26713, 27763, 29863, 32983
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A078561. - R. J. Mathar, Feb 11 2013

Examples

			p=43,43+4=47,43+4+6=53,43+4+6+6=59 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    Transpose[Select[Partition[Prime[Range[4000]],4,1],Differences[#]=={4,6,6}&]][[1]] (* Harvey P. Dale, Dec 15 2015 *)
  • PARI
    isok(n) = isprime(n) && (nextprime(n+1) == (n+4)) && (nextprime(n+5) == (n+10)) && (nextprime(n+11) == (n+16)) \\ Michel Marcus, Jul 23 2013

Formula

Primes p = p(i) such that p(i+1)=p+4, p(i+2)=p+4+6, p(i+3)=p+4+6+6.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A078856 Initial term in sequence of four consecutive primes whose consecutive differences have d-pattern = [6, 4, 6]; short d-string notation for pattern = [646].

Original entry on oeis.org

73, 157, 373, 433, 1543, 2341, 2383, 3313, 3607, 4441, 4993, 5851, 6037, 6961, 7237, 8731, 9613, 9733, 10723, 13093, 14143, 14731, 16411, 16921, 17971, 18787, 20107, 21391, 23011, 23593, 25111, 25237, 25447, 27793, 30103, 30697, 32353, 32563
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Examples

			p=73, 73 + 6 = 79, 73 + 6 + 4 = 83, 73 + 6 + 4 + 6 = 89 are consecutive primes.
		

Crossrefs

Subsequence of A078562.
Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Maple
    N:=10^4: # to get all terms <= N.
    Primes:=select(isprime,[seq(i,i=3..N+16,2)]):
    Primes[select(t->[Primes[t+1]-Primes[t], Primes[t+2]-Primes[t+1],
    Primes[t+3]-Primes[t+2]]=[6,4,6], [$1..nops(Primes)-3])]; # Muniru A Asiru, Aug 04 2017
  • Mathematica
    Transpose[Select[Partition[Prime[Range[10000]],4,1],Differences[#]=={6,4,6}&]][[1]] (* Harvey P. Dale, Apr 22 2014 *)

Formula

Primes p = p_(i) such that p_(i+1) = p + 6, p_(i+2) = p + 6 + 4, p_(i+3) = p + 6 + 4 + 6.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009
Name simplified by Michel Marcus, Aug 11 2017

A096502 a(n) = k is the smallest exponent k such that 2^k - (2n+1) is a prime number, or 0 if no such k exists.

Original entry on oeis.org

2, 3, 3, 39, 4, 4, 4, 5, 6, 5, 5, 6, 5, 5, 5, 7, 6, 6, 11, 7, 6, 29, 6, 6, 7, 6, 6, 7, 6, 6, 6, 8, 8, 7, 7, 10, 9, 7, 8, 9, 7, 8, 7, 7, 8, 7, 8, 10, 7, 7, 26, 9, 7, 8, 7, 7, 10, 7, 7, 8, 7, 7, 7, 47, 8, 14, 9, 11, 10, 9, 10, 8, 9, 8, 8, 31, 8, 8, 15, 8, 10, 9
Offset: 0

Views

Author

Labos Elemer, Jul 09 2004

Keywords

Comments

As D. W. Wilson observes, this is similar to the Riesel/Sierpinski problem and there is e.g. no prime of the form 2^k - 777149, which is divisible by 3,5,7,13,19,37 or 73 if k is in 1+2Z, 2+4Z, 4+12Z, 8+12Z, 12+36Z, 0+36Z resp. 24+36Z. Already for n=935 it is difficult to find a solution. Is this linked to the fact that 2n+1=1871 is member of a prime quadruple (A007530) and quintuple (A022007)? - M. F. Hasler, Apr 07 2008

Examples

			a(0)=A000043(1)=2, a(1)=A050414(1)=3, a(2)=A059608(1)=3, a(3)=A059609(1)=39.
For n=110 and n=111 even these smallest exponents are rather large: a(110)=714, a(111)=261 which mean that 2^714-221 and 2^261-223 are the least corresponding prime numbers.
		

Crossrefs

Programs

  • Mathematica
    Table[k = 1; While[2^k < n || ! PrimeQ[2^k - n], k++]; k, {n, 1, 1869, 2}] (* T. D. Noe, Mar 18 2013 *)
  • PARI
    A096502(n,k)={ k || k=log(n)\log(2)+1; n=2*n+1; while( !ispseudoprime(2^k++-n),);k } /* will take a long time for n=935... */ - M. F. Hasler, Apr 07 2008

A078849 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[2, 6,6]; short d-string notation of pattern = [266].

Original entry on oeis.org

149, 599, 3299, 4649, 5099, 6359, 11489, 12539, 16979, 19469, 27059, 30089, 31319, 34259, 42179, 53609, 58229, 63689, 65699, 71339, 75209, 77549, 78569, 80909, 81929, 85829, 87509, 87539, 89519, 92219, 101279, 105359, 112289, 116099, 116789
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A049437. - R. J. Mathar, Feb 10 2013

Examples

			149, 149+2=151, 149+2+6=157, 149+2+6+6=163 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    d = {2, 6, 6}; First /@ Select[Partition[Prime@ Range@ 12000, Length@ d + 1, 1], Differences@ # == d &] (* Michael De Vlieger, May 02 2016 *)
    Select[Partition[Prime[Range[12000]],4,1],Differences[#]=={2,6,6}&][[All,1]] (* Harvey P. Dale, Dec 29 2017 *)

Formula

Primes p = p(i) such that p(i+1)=p+2, p(i+2)=p+2+6, p(i+3)=p+2+6+6.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A078853 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d = 2, 4 or 6) and forming d-pattern=[6,2,4]; short d-string notation of pattern = [624].

Original entry on oeis.org

1601, 3911, 5471, 8081, 12101, 12911, 13751, 14621, 17021, 32051, 38321, 40841, 43391, 58901, 65831, 67421, 67751, 68891, 69821, 72161, 80141, 89591, 90011, 90191, 97571, 100511, 102191, 111821, 112241, 122021, 125921, 129281, 129581
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

All terms are == 11 (mod 30). Is 180 the minimal first difference? - Zak Seidov, Jun 27 2015
Subsequence of A049438. - R. J. Mathar, May 06 2017

Examples

			p=1601, 1601+6=1607, 1601+6+2=1609, 1601+6+2+4=1613 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], this sequence[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    Transpose[Select[Partition[Prime[Range[13000]], 4, 1], Differences[#]=={6, 2, 4} &]][[1]] (* Vincenzo Librandi, Jun 27 2015 *)

Formula

Primes p = p(i) such that p(i+1)=p+6, p(i+2)=p+6+2, p(i+3)=p+6+2+4.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A078850 Initial term in sequence of four consecutive primes separated by 3 consecutive differences each <=6 (i.e., when d=2,4 or 6) and forming d-pattern=[4,2,6]; short d-string notation of pattern = [426].

Original entry on oeis.org

67, 1447, 2377, 2707, 5437, 5737, 7207, 9337, 11827, 12037, 19207, 21487, 21517, 23197, 26107, 26947, 28657, 31147, 31177, 35797, 37357, 37567, 42697, 50587, 52177, 65167, 67927, 69997, 71707, 74197, 79147, 81547, 103087, 103387, 106657
Offset: 1

Views

Author

Labos Elemer, Dec 11 2002

Keywords

Comments

Subsequence of A022005. - R. J. Mathar, May 06 2017

Examples

			p=67,67+4=71,67+4+2=73,67+4+2+6=79 are consecutive primes.
		

Crossrefs

Cf. analogous prime quadruple sequences with various possible {2, 4, 6}-difference-patterns in brackets: A007530[242], A078847[246], A078848[264], A078849[266], A052378[424], A078850[426], A078851[462], A078852[466], A078853[624], A078854[626], A078855[642], A078856[646], A078857[662], A078858[664], A033451[666].

Programs

  • Mathematica
    d = {4, 2, 6}; First /@ Select[Partition[Prime@ Range@ 12000, Length@ d + 1, 1], Differences@ # == d &] (* Michael De Vlieger, May 02 2016 *)

Formula

Primes p = p(i) such that p(i+1)=p+4, p(i+2)=p+4+2, p(i+3)=p+4+2+6.

Extensions

Listed terms verified by Ray Chandler, Apr 20 2009

A052350 Least prime in A001359 (lesser of twin primes) such that the distance (A053319) to the next twin is 6*n.

Original entry on oeis.org

5, 17, 41, 617, 71, 311, 2267, 521, 1877, 461, 1721, 347, 1151, 1787, 3581, 2141, 6449, 1319, 21377, 1487, 12251, 4799, 881, 23057, 659, 19541, 12377, 2381, 38747, 10529, 37361, 8627, 9041, 33827, 5879, 80231, 15359, 45821, 36107, 14627, 37991, 36527, 87251, 70997
Offset: 1

Views

Author

Labos Elemer, Mar 07 2000

Keywords

Comments

Smallest distance (A052380) and also smallest possible increment of twin-distances is 6.
Primes may occur between p+2 and p+6n.
The prime a(n) determines a prime quadruple: [p, p+2, p+6n, p+6n+2] and a [2, 6n-2, 2] d-pattern.

Examples

			The first 3 terms (5, 17, 41) are followed by difference patterns as it is displayed: 5 by [2, 4, 2], 17 by [2, 4+6, 2], 41 by [2, 4+6+6, 2] determining prime quadruples: (5, 7, 11, 13), (17, 19, 29, 31) or (41, 43, 59, 61), respectively.
a(10) = 461 gives the quadruple [461, 463, 521 = 461+60, 523], and between 521 and 463, 7 primes occur.
		

Crossrefs

Programs

  • Mathematica
    NextLowerTwinPrim[n_] := Block[{k = n + 6}, While[ !PrimeQ[k] || !PrimeQ[k + 2], k += 6]; k];p = 5; t = Table[0, {50}]; Do[ q = NextLowerTwinPrim[p]; d = (q - p)/6; If[d < 51 && t[[d]] == 0, t[[d]] = p; Print[{d, p}]]; p = q, {n, 1500}]; t (* Robert G. Wilson v, Oct 28 2005 *)
  • PARI
    list(len) = {my(s = vector(len), c = 0, p1 = 5, q1 = 0, q2, d); forprime(p2 = 7, , if(p2 == p1 + 2, q2 = p1; if(q1 > 0, d = (q2 - q1)/6; if(d <= len && s[d] == 0, c++; s[d] = q1; if(c == len, return(s)))); q1 = q2); p1 = p2);} \\ Amiram Eldar, Mar 04 2025

Extensions

Name corrected by Amiram Eldar, Mar 04 2025
Previous Showing 41-50 of 112 results. Next