1,30

a(n) = major index (2nd definition) of cototient(n), where cototient(n) = n - phi(n).

Indranil Ghosh, Table of n, a(n) for n = 1..10000

Indranil Ghosh, Python Program to generate the sequence

a(n) = A049502(A051953(n)).

For n = 30, cototient(n) = 22 and major index (2nd definition) of 22 is 3. So, a(n) = 3.

Cf. A049502, A051953, A280726, A280799, A280800.

Sequence in context: A133573 A151859 A163541 * A165974 A090622 A035696

Adjacent sequences: A280812 A280813 A280814 * A280816 A280817 A280818

nonn

Indranil Ghosh, Jan 08 2017

approved