login
a(n) = A122111(n) mod 4.
10

%I #6 Jul 15 2020 13:58:26

%S 1,2,0,3,0,2,0,1,1,0,0,2,0,0,2,3,0,3,0,0,0,0,0,2,3,0,1,0,0,2,0,3,0,0,

%T 2,1,0,0,0,0,0,0,0,0,2,0,0,2,1,1,0,0,0,3,0,0,0,0,0,2,0,0,0,1,0,0,0,0,

%U 0,2,0,1,0,0,3,0,2,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,0,3,0,3,0,0,0,0,2

%N a(n) = A122111(n) mod 4.

%H Antti Karttunen, <a href="/A336124/b336124.txt">Table of n, a(n) for n = 1..65537</a>

%F a(n) = A010873(A122111(n)).

%o (PARI)

%o A064989(n) = {my(f); f = factor(n); if((n>1 && f[1,1]==2), f[1,2] = 0); for (i=1, #f~, f[i,1] = precprime(f[i,1]-1)); factorback(f)};

%o A122111(n) = if(1==n,n,prime(bigomega(n))*A122111(A064989(n)));

%o A336124(n) = (A122111(n)%4);

%Y Cf. A010873, A064989, A122111, A336120.

%K nonn

%O 1,2

%A _Antti Karttunen_, Jul 15 2020