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

A071087 w values for A071352.

Original entry on oeis.org

1, 3, 7, 13, 77, 182, 1100, 1821, 9230
Offset: 1

Views

Author

Naohiro Nomoto, May 26 2002

Keywords

Comments

Some of the larger entries may only correspond to probable primes.
For n>1, a(n) are numbers x such that 2^x is the sum of two consecutive primes. 2^(x-1) is the average of those primes. For a(2) to a(9) the primes are: 2^2+/-1 = (3,5), 2^6+/-3 = (61,67), 2^12+/-3 = (4093,4099), 2^76+/-15, 2^181+/-165, 2^1099+/-1035, 2^1820+/-663, 2^9229+/-2211. - Jens Kruse Andersen, Oct 26 2006

Examples

			2^7 = 128 is the sum of two consecutive primes (61,67), therefore 7 is a member of the sequence.
		

Programs

  • Mathematica
    PrevPrim[n_] := Block[{k = n - 1}, While[ !PrimeQ[k], k-- ]; k]; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Do[ p = PrevPrim[2^n]; q = NextPrim[2^n]; If[p + q == 2^(n + 1), Print[n+1]], {n, 2, 9230}] (* Robert G. Wilson v, Jan 24 2004 *)

Extensions

More terms from Carlos Rivera, Jun 07 2003
9230 from Jens Kruse Andersen, Jun 14 2003

A251609 Least k such that prime(k) + prime(k+1) contains n distinct prime divisors.

Original entry on oeis.org

1, 3, 6, 27, 276, 1755, 24865, 646029, 7946521, 195711271, 4129119136, 198635909763, 6351380968517, 322641218722443, 11068897188590241, 501741852481602261, 24367382928343066431, 1292304206793356882286
Offset: 1

Views

Author

Michel Lagneau, Dec 05 2014

Keywords

Examples

			a(1) = 1 because prime(1) + prime(2) = 2 + 3 = 5, which is a prime power and so has one distinct prime divisor; the other prime indices yielding a prime power are 2, 18, 564,...(A071352) since prime(2) + prime(3) = 3 + 5 = 2^3, prime(18) + prime(19) = 61 + 67 = 2^7, prime(564) + prime(565)= 4093 + 4099 = 2^13,...
		

Crossrefs

Programs

  • Maple
    N:= 10^6: # to use primes <= N
    Primes:= select(isprime, [2,seq(2*i+1,i=1..(N-1)/2)]):
    for i from 1 to nops(Primes)-1 do
      f:= nops(numtheory:-factorset(Primes[i]+Primes[i+1]));
      if not assigned(A[f]) then A[f]:= i fi
    od:
    seq(A[j],j=1..max(indices(A))); # Robert Israel, Dec 05 2014
  • Mathematica
    lst={};Do[k=1;While[Length[FactorInteger[Prime[k]+Prime[k+1]]]!=n,k++];AppendTo[lst,k],{n,1,5}];lst

Formula

a(n) = A000720(A230518(n)). - Amiram Eldar, Feb 17 2019

Extensions

a(10)-a(18) from Amiram Eldar, Feb 17 2019
Showing 1-2 of 2 results.