|
|
A127368
|
|
Relative prime triangle, read by rows.
|
|
7
|
|
|
1, 1, 0, 1, 2, 0, 1, 0, 3, 0, 1, 2, 3, 4, 0, 1, 0, 0, 0, 5, 0, 1, 2, 3, 4, 5, 6, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 2, 0, 4, 5, 0, 7, 8, 0, 1, 0, 3, 0, 0, 0, 7, 0, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, 0, 0, 0, 5, 0, 7, 0, 0, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
COMMENTS
|
Row sums = A023896, (reduced residue system mod n): (1, 1, 3, 4, 10, 6, 21, ...). - Gary W. Adamson, Aug 27 2008
|
|
LINKS
|
|
|
FORMULA
|
T(n,k) = k if a relative prime of n; 0 otherwise. Replace the "1's" of A054521 with their corresponding column numbers; leaving the zeros.
|
|
EXAMPLE
|
Row 4 = (1, 0, 3, 0) since 1 and 3 are relative primes of 4.
First few rows of the triangle are:
1;
1, 0;
1, 2, 0;
1, 0, 3, 0;
1, 2, 3, 4, 0;
1, 0, 0, 0, 5, 0;
1, 2, 3, 4, 5, 6, 0;
...
|
|
PROG
|
(PARI)
T127368(n, k)={gcd(n, k)==1 & return(k)}
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|