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!)
A291708 Number of partitions of n into two prime parts or two nonprime parts. 0
0, 1, 0, 1, 2, 1, 2, 2, 2, 4, 1, 3, 3, 4, 3, 6, 2, 6, 4, 6, 4, 8, 3, 9, 5, 9, 4, 9, 5, 11, 7, 9, 7, 13, 6, 15, 7, 10, 9, 14, 8, 16, 10, 14, 10, 16, 9, 19, 11, 18, 10, 17, 11, 21, 13, 18, 12, 20, 13, 25, 15, 18, 15, 24, 14, 27, 15, 19, 17, 26, 16, 28, 18, 25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
a(n) = Sum_{i=1..floor(n/2)} [A010051(i) = A010051(n-i)], where [] is the Iverson bracket.
a(n) = floor(n/2) - A062602(n).
MATHEMATICA
Table[Sum[KroneckerDelta[(PrimePi[k] - PrimePi[k - 1]), (PrimePi[n - k] - PrimePi[n - 1 - k])], {k, Floor[n/2]}], {n, 80}]
CROSSREFS
Sequence in context: A029170 A079526 A353339 * A163822 A029203 A363526
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 20 2017
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 March 18 22:56 EDT 2024. Contains 370952 sequences. (Running on oeis4.)