login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240718 Number of decompositions of 2n into an unordered sum of two primes, one of the two primes less than sqrt(2n-2). 2
0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 2, 1, 0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 0, 1, 0, 0, 1, 1, 2, 1, 2, 1, 3, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 1, 3, 3, 1, 1, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,17
LINKS
EXAMPLE
For n = 7, the a(7) = 1 solution is 2*7 = 3 + 11 = 7 + 7; one of these pairs, 3 + 11, contains a number less than sqrt(2*7 - 2).
MAPLE
P:= NULL: A[1]:= 0: nextp:= 2:
for n from 2 to 100 do
while nextp^2 < 2*n-2 do
P:= P, nextp;
nextp:= nextprime(nextp);
od;
A[n]:= numboccur(true, map(t -> isprime(2*n-t), [P]))
od:
seq(A[i], i=1..100); # Robert Israel, Apr 30 2019
PROG
(PARI)
a(n)=sum(i=2, primepi(floor(sqrt(2*n-2))), isprime(2*n-prime(i))) \\ Lear Young, Apr 11 2014
CROSSREFS
Cf. A002375.
Sequence in context: A092876 A187360 A334368 * A357071 A292518 A264997
KEYWORD
nonn
AUTHOR
Lear Young, Apr 11 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 12:22 EDT 2024. Contains 371937 sequences. (Running on oeis4.)