login
a(n) = A049501(phi(n)).
6

%I #15 Jan 08 2017 11:42:43

%S 0,0,1,1,1,1,2,1,2,1,4,1,2,2,1,1,1,2,5,1,2,4,5,1,4,2,5,2,3,1,4,1,4,1,

%T 2,2,5,5,2,1,4,2,9,4,2,5,6,1,9,4,1,2,6,5,4,2,5,3,8,1,4,4,5,1,2,4,7,1,

%U 5,2,7,2,5,5,4,5,4,2,7,1,7,4,10,2,1,9,3,4,5,2,5,5,4,6,5,1,2,9,4,4,7,1,8,2,2,6,12,5,7

%N a(n) = A049501(phi(n)).

%C a(n) = Major index (1st definition) of the total numbers <=n and prime to n i.e., phi(n).

%H Indranil Ghosh, <a href="/A280726/b280726.txt">Table of n, a(n) for n = 1..10000</a>

%H Indranil Ghosh, <a href="/A280726/a280726.txt">Python Program to generate the sequence</a>

%F a(n) = A049501(A000010(n)).

%e For n = 10, phi(n) = 4 and major index (1st definition) of 4 = 1. So a(n) = 1.

%Y Cf. A000010, A049501, A280306, A280531.

%K nonn

%O 1,7

%A _Indranil Ghosh_, Jan 07 2017