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!)
A307990 Number of partitions of n into 2 distinct nonadjacent prime parts. 0
0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 2, 0, 1, 1, 2, 1, 2, 0, 2, 1, 2, 0, 2, 0, 2, 1, 2, 1, 3, 0, 3, 0, 1, 1, 3, 0, 3, 1, 3, 1, 3, 0, 5, 1, 4, 0, 2, 0, 5, 1, 3, 0, 3, 0, 5, 1, 2, 1, 5, 0, 6, 0, 1, 1, 5, 0, 6, 1, 4, 1, 5, 0, 6, 0, 4, 1, 4, 0, 7, 1, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,16
LINKS
FORMULA
a(n) = Sum_{i=1..floor((n-1)/2)} (1-floor((pi(i)+1)/pi(n-i))) * A010051(i) * A010051(n-i), where pi is the prime counting function.
EXAMPLE
a(7) = 1 since 7 = 2 + 5 is the only partition of 7 into two distinct nonadjacent prime parts.
MATHEMATICA
Table[Sum[(1 - Floor[(PrimePi[i] + 1)/PrimePi[n - i]]) (PrimePi[i] - PrimePi[i - 1]) (PrimePi[n - i] - PrimePi[n - i - 1]), {i, Floor[(n - 1)/2]}], {n, 100}]
CROSSREFS
Cf. A307343.
Sequence in context: A060184 A055639 A156542 * A066360 A061358 A025866
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, May 09 2019
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)