login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Triangle read by rows: T(m,n) is the cardinality of the set {k in [1,n-1] : gcd(k,n)=m}.
1

%I #4 Mar 20 2015 17:09:08

%S 0,0,1,0,0,2,0,0,0,2,0,0,0,1,4,0,0,0,0,0,2,0,0,0,0,0,2,6,0,0,0,0,0,1,

%T 0,4,0,0,0,0,0,0,0,2,6,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,1,2,4,10,0,0,

%U 0,0,0,0

%N Triangle read by rows: T(m,n) is the cardinality of the set {k in [1,n-1] : gcd(k,n)=m}.

%C A generalization of Euler's phi function: T(1,n)=phi(n).

%e T(2,4)=1 because gcd(1,4)=1, gcd(2,4)=2, gcd(3,4)=1.

%Y Cf. A000010.

%K nonn,easy,tabl

%O 1,6

%A Michele Dondi (bik.mido(AT)tiscalinet.it), Sep 14 2003