A226982 a(n) = ceiling(n/2) - primepi(n).
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
Offset: 1
Examples
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
Programs
-
Maple
seq(ceil(n/2)-numtheory[pi](n),n=1..100);
Comments