%I #11 Oct 02 2015 03:38:23
%S 0,0,1,2,1,0,2,3,1,1,2,3,2,3,2,2,1,3,3,1,2,3,4,1,1,3,2,3,2,4,1,3,2,2,
%T 3,1,3,3,4,2,2,3,5,5,1,4,4,4,2,6,4,4,4,6,3,4,5,4,5,4,4,3,6,4,2,3,3,5,
%U 4,4,4,3,1,4,5,4,3,6,3,1,2,3,4,4,5,5,3,3,2,8,5,3,4,2,4,4,2,3,7,2
%N Number of ordered ways to write n as x^2 + phi(y^2) + phi(z^2) (x >= 0 and 0 < y <= z) with y or z prime, where phi(.) is Euler's totient function given by A000010.
%C Conjecture: (i) a(n) > 0 for all n > 6, and a(n) = 1 only for n = 3, 5, 9, 10, 17, 20, 24, 25, 31, 36, 45, 73, 80, 101, 136, 145, 388, 649.
%C (ii) For any integer n > 4, we can write 2*n as phi(p^2) + phi(x^2) + phi(y^2) with p prime and p <= x <= y.
%C See also A262311 for a similar conjecture.
%H Zhi-Wei Sun, <a href="/A262781/b262781.txt">Table of n, a(n) for n = 1..10000</a>
%F a(3) = 1 since 3 = 0^2 + phi(1^2) + phi(2^2) with 2 prime.
%F a(5) = 1 since 5 = 1^2 + phi(2^2) + phi(2^2) with 2 prime.
%F a(9) = 1 since 9 = 1^2 + phi(2^2) + phi(3^2) with 2 and 3 both prime.
%F a(10) = 1 since 10 = 0^2 + phi(2^2) + phi(4^2) with 2 prime.
%F a(17) = 1 since 17 = 3^2 + phi(2^2) + phi(3^2) with 2 and 3 both prime.
%F a(20) = 1 since 20 = 4^2 + phi(2^2) + phi(2^2) with 2 prime.
%F a(24) = 1 since 24 = 4^2 + phi(2^2) + phi(3^2) with 2 and 3 both prime.
%F a(25) = 1 since 25 = 2^2 + phi(1^2) + phi(5^2) with 5 prime.
%F a(31) = 1 since 31 = 3^2 + phi(2^2) + phi(5^2) with 2 and 5 both prime.
%F a(36) = 1 since 36 = 2^2 + phi(5^2) + phi(6^2) with 5 prime.
%F a(45) = 1 since 45 = 1^2 + phi(2^2) + phi(7^2) with 2 and 7 both prime.
%F a(73) = 1 since 73 = 5^2 + phi(3^2) + phi(7^2) with 3 and 7 both prime.
%F a(80) = 1 since 80 = 6^2 + phi(2^2) + phi(7^2) with 2 and 7 both prime.
%F a(101) = 1 since 101 = 7^2 + phi(5^2) + phi(8^2) with 5 prime.
%F a(136) = 1 since 136 = 5^2 + phi(1^2) + phi(11^2) with 11 prime.
%F a(145) = 1 since 145 = 7^2 + phi(7^2) + phi(9^2) with 7 prime.
%F a(388) = 1 since 388 = 2^2 + phi(7^2) + phi(19^2) with 7 and 19 both prime.
%F a(649) = 1 since 649 = 11^2 + phi(7^2) + phi(27^2) with 7 prime.
%t SQ[n_]:=IntegerQ[Sqrt[n]]
%t f[n_]:=EulerPhi[n^2]
%t Do[r=0;Do[If[f[z]>n,Goto[aa]];Do[If[SQ[n-f[z]-f[y]]&&(PrimeQ[y]||PrimeQ[z]),r=r+1],{y,1,z}];Label[aa];Continue,{z,1,n}];Print[n," ",r];Continue,{n,1,100}]
%Y Cf. A000010, A000040, A000290, A002618, A262311, A262746, A262747.
%K nonn
%O 1,4
%A _Zhi-Wei Sun_, Oct 01 2015