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!)
A226982 a(n) = ceiling(n/2) - primepi(n). 0
1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 15, 15, 15 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,15
COMMENTS
The number of partitions of 2n into exactly two parts such that the smaller part is an odd composite integer, n > 1.
Sequence decreases by 1 when n is an even prime and increases by 1 when n is an odd composite. - Wesley Ivan Hurt, Dec 27 2013
LINKS
FORMULA
a(n) = floor((n+1)/2) - pi(n) = A004526(n+1) - A000720(n).
a(n) = n - A004526(n) - A000720(n). - Wesley Ivan Hurt, Dec 27 2013
EXAMPLE
a(18) =2. 2*18=38 has two partitions into exactly two odd parts with smallest part composite: (27,9) and (21,15). - Wesley Ivan Hurt, Dec 27 2013
MAPLE
seq(ceil(n/2)-numtheory[pi](n), n=1..100);
CROSSREFS
Sequence in context: A051742 A134119 A064661 * A280952 A235122 A131996
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jun 25 2013
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 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)