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.

A001043 Numbers that are the sum of 2 successive primes.

This page as a plain text file.
%I A001043 M3780 N0968 #110 Jan 20 2025 06:01:59
%S A001043 5,8,12,18,24,30,36,42,52,60,68,78,84,90,100,112,120,128,138,144,152,
%T A001043 162,172,186,198,204,210,216,222,240,258,268,276,288,300,308,320,330,
%U A001043 340,352,360,372,384,390,396,410,434,450,456,462,472,480,492,508,520
%N A001043 Numbers that are the sum of 2 successive primes.
%C A001043 Arithmetic derivative (see A003415) of prime(n)*prime(n+1). - _Giorgio Balzarotti_, May 26 2011
%C A001043 A008472(a(n)) = A191583(n). - _Reinhard Zumkeller_, Jun 28 2011
%C A001043 With the exception of the first term, all terms are even. a(n) is divisible by 4 if the difference between prime(n) and prime(n + 1) is not divisible by 4; e.g., prime(n) = 1 mod 4 and prime(n + 1) = 3 mod 4. In general, for a(n) to be divisible by some even number m > 2 requires that prime(n + 1) - prime(n) not be a multiple of m. - _Alonso del Arte_, Jan 30 2012
%D A001043 Archimedeans Problems Drive, Eureka, 26 (1963), 12.
%D A001043 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
%D A001043 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H A001043 Seiichi Manyama, <a href="/A001043/b001043.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..1000 from T. D. Noe)
%H A001043 Albert Frank & Philippe Jacqueroux, <a href="http://www.paulcooijmans.com/others/intcontest.pdf">International Contest</a>, 2001. Item 22
%H A001043 Richard K. Guy, <a href="/A002186/a002186.pdf">Letters to N. J. A. Sloane, June-August 1968</a>
%H A001043 N. J. A. Sloane and Brady Haran, <a href="https://www.youtube.com/watch?v=6X2D497is6Y">Eureka Sequences</a>, Numberphile video (2021)
%F A001043 a(n) = prime(n) + prime(n + 1) = A000040(n) + A000040(n+1).
%F A001043 a(n) = A116366(n, n - 1) for n > 1. - _Reinhard Zumkeller_, Feb 06 2006
%F A001043 a(n) = 2*A024675(n-1), n>1. - _R. J. Mathar_, Jan 12 2024
%e A001043 2 + 3 = 5.
%e A001043 3 + 5 = 8.
%e A001043 5 + 7 = 12.
%e A001043 7 + 11 = 18.
%p A001043 Primes:= select(isprime,[2,seq(2*i+1,i=1..1000)]):
%p A001043 n:= nops(Primes):
%p A001043 Primes[1..n-1] + Primes[2..n]; # _Robert Israel_, Aug 29 2014
%t A001043 Table[Prime[n] + Prime[n + 1], {n, 55}] (* _Ray Chandler_, Feb 12 2005 *)
%t A001043 Total/@Partition[Prime[Range[60]], 2, 1] (* _Harvey P. Dale_, Aug 23 2011 *)
%t A001043 Abs[Differences[Table[(-1)^n Prime[n], {n, 60}]]] (* _Alonso del Arte_, Feb 03 2016 *)
%o A001043 (Sage)
%o A001043 BB = primes_first_n(56)
%o A001043 L = []
%o A001043 for i in range(55): L.append(BB[1 + i] + BB[i])
%o A001043 L # _Zerinvary Lajos_, May 14 2007
%o A001043 (Magma) [(NthPrime(n+1) + NthPrime(n)): n in [1..100]]; // _Vincenzo Librandi_, Apr 02 2011
%o A001043 (PARI) p=2;forprime(q=3,1e3,print1(p+q", ");p=q) \\ _Charles R Greathouse IV_, Jun 10 2011
%o A001043 (PARI) is(n)=precprime((n-1)/2)+nextprime(n/2)==n&&n>2 \\ _Charles R Greathouse IV_, Jun 21 2012
%o A001043 (Haskell)
%o A001043 a001043 n = a001043_list !! (n-1)
%o A001043 a001043_list = zipWith (+) a000040_list $ tail a000040_list
%o A001043 -- _Reinhard Zumkeller_, Oct 19 2011
%Y A001043 Subsequence of A050936.
%Y A001043 Cf. A000040 (primes), A031131 (first differences), A092163 (bisection), A100479 (bisection).
%K A001043 nonn,nice,easy
%O A001043 1,1
%A A001043 _N. J. A. Sloane_, _R. K. Guy_
%E A001043 More terms from Larry Reeves (larryr(AT)acm.org), Mar 17 2000