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”).

A087623
Triangle read by rows: T(m,n) is the cardinality of the set {k in [1,n-1] : gcd(k,n)=m}.
1
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, 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, 0, 0, 0, 0
OFFSET
1,6
COMMENTS
A generalization of Euler's phi function: T(1,n)=phi(n).
EXAMPLE
T(2,4)=1 because gcd(1,4)=1, gcd(2,4)=2, gcd(3,4)=1.
CROSSREFS
Cf. A000010.
Sequence in context: A083914 A083891 A363860 * A265260 A363888 A338268
KEYWORD
nonn,easy,tabl
AUTHOR
Michele Dondi (bik.mido(AT)tiscalinet.it), Sep 14 2003
STATUS
approved