A286424 Number of partitions of p_n# into parts (q, k) both coprime to p_n#, with q prime and k nonprime, where p_n# = A002110(n).
0, 0, 1, 1, 4, 110, 1432, 23338, 397661, 8193828, 212858328, 5941706227
Offset: 0
Examples
a(0) = 0 by definition. A002110(0) = 1; 1 is coprime to all numbers; the only possible totative pair is (1,1) and this does not include both a prime and a nonprime. a(1) = 0 since, of the floor(A005867(1)/2) = 1 totative pair (1,1) of A002110(1) = 2, none include a both a prime and a nonprime. a(2) = 1 since, the only totative pair (1,5) of A002110(1) = 6 includes both a prime and a nonprime. a(3) = 1 since only (1,29) includes both a prime and a nonprime. a(4) = 4 since (23,187), (41,169), (67,143), (89,121) include a both a prime and a nonprime.
Links
Programs
-
Mathematica
Table[Function[P, Count[Prime@ Range[n + 1, PrimePi[P]], q_ /; ! PrimeQ[P - q]]]@ Product[Prime@ i, {i, n}], {n, 0, 9}] (* Michael De Vlieger, May 08 2017 *)
Formula
Extensions
a(11) from Giovanni Resta, May 09 2017
Comments