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!)
A171611 From Goldbach problem: number of decompositions of 2n into unordered sums of two primes > 3. 4
0, 0, 0, 0, 1, 1, 1, 1, 2, 1, 2, 3, 2, 2, 3, 1, 3, 4, 2, 2, 4, 2, 3, 5, 3, 3, 5, 2, 4, 6, 2, 4, 6, 2, 4, 6, 4, 4, 7, 4, 4, 8, 4, 4, 9, 3, 5, 7, 3, 5, 8, 4, 5, 8, 5, 6, 10, 5, 6, 12, 4, 5, 10, 3, 6, 9, 5, 5, 8, 6, 7, 11, 6, 5, 12, 3, 7, 11, 5, 7, 10, 5, 5, 13, 8, 6, 11, 6, 7, 14, 5, 7, 13, 5, 8, 11, 6, 8, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
LINKS
EXAMPLE
a(5)=1 because 2*5 = 5 + 5.
MAPLE
A171611 := proc(n) a := 0 ; for i from 3 do p := ithprime(i) ; q := 2*n-p ; if q < p then return a ; end if; if isprime(q) then a := a+1 ; end if; if q <= p then return a ; end if; end do: end proc:
seq(A171611(n), n=1..120) ; # R. J. Mathar, May 22 2010
MATHEMATICA
Table[s = 2*n; ct = 0; p = 3; While[p = NextPrime[p]; p <= n, If[PrimeQ[s - p], ct++]]; ct, {n, 100}] (* Lei Zhou, Apr 10 2014 *)
CROSSREFS
Sequence in context: A319178 A254041 A240712 * A239507 A216448 A216763
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(38) changed from 5 to 4 and a(79) and a(82) changed by R. J. Mathar, May 22 2010
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 July 22 21:11 EDT 2024. Contains 374544 sequences. (Running on oeis4.)