OFFSET
1,3
LINKS
Seiichi Manyama, Antidiagonals n = 1..140, flattened
FORMULA
G.f. of column k: Sum_{j>=1} phi(j) * x^j/(1 - x^j)^(k+1).
T(n,k) = Sum_{d|n} phi(n/d) * binomial(d+k-1, k).
EXAMPLE
T(4,2) = gcd(1,1,4) + gcd(1,2,4) + gcd(2,2,4) + gcd(1,3,4) + gcd(2,3,4) + gcd(3,3,4) + gcd(1,4,4) + gcd(2,4,4) + gcd(3,4,4) + gcd(4,4,4) = 1 + 1 + 2 + 1 + 1 + 1 + 1 + 2 + 1 + 4 = 15.
Square array begins:
1, 1, 1, 1, 1, 1, 1, ...
3, 4, 5, 6, 7, 8, 9, ...
5, 8, 12, 17, 23, 30, 38, ...
8, 15, 26, 42, 64, 93, 130, ...
9, 19, 39, 74, 130, 214, 334, ...
15, 35, 76, 153, 287, 506, 846, ...
13, 34, 90, 216, 468, 930, 1722, ...
MATHEMATICA
T[n_, k_] := DivisorSum[n, EulerPhi[n/#] * Binomial[k + # - 1, k] &]; Table[T[k, n - k + 1], {n, 1, 11}, {k, 1, n}] // Flatten (* Amiram Eldar, Apr 18 2021 *)
PROG
(PARI) T(n, k) = sumdiv(n, d, eulerphi(n/d)*binomial(d+k-1, k));
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Apr 17 2021
STATUS
approved