OFFSET
1,5
FORMULA
EXAMPLE
There is only 1 distinct prime number involved in the partitions of 4, namely 2 (in 2+2 = 4). The partition 3+1 does not count, as 1 is not a prime. So a(4)= 1.
There are 3 distinct primes involved in the partitions of 5 = 2+3, so a(5) = 3.
MATHEMATICA
f[n_] := If[OddQ@n, If[n == 3, 1, PrimePi@n], If[n == 2, 1, PrimePi[n - 2]]]; Array[f, 80] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Anton Joha, Jun 10 2006
EXTENSIONS
Edited and extended by Robert G. Wilson v, Jun 15 2006
STATUS
approved