%I #67 Aug 13 2024 21:07:23
%S 1,1,1,2,0,1,2,1,0,1,4,0,0,0,1,2,2,1,0,0,1,6,0,0,0,0,0,1,4,2,0,1,0,0,
%T 0,1,6,0,2,0,0,0,0,0,1,4,4,0,0,1,0,0,0,0,1,10,0,0,0,0,0,0,0,0,0,1,4,2,
%U 2,2,0,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,0,0,0,1,6,6
%N Triangle read by rows: T(n,k) = phi(n/k) if k divides n, T(n,k)=0 otherwise (n >= 1, 1 <= k <= n).
%C From _Gary W. Adamson_, Jan 08 2007: (Start)
%C Let H be this lower triangular matrix. Then:
%C H * A051731 = A126988,
%C H * [1, 2, 3, ...] = 1, 3, 5, 8, 9, 15, ... = A018804,
%C H * sigma(n) = A038040 = d(n) * n = 1, 4, 6, 12, 10, ... where sigma(n) = A000203,
%C H * d(n) (A000005) = sigma(n) = A000203,
%C Row sums are A000027 (corrected by _Werner Schulte_, Sep 06 2020, see comment of Gary W. Adamson, Aug 03 2008),
%C H^2 * d(n) = d(n)*n, H^2 = A127192,
%C H * mu(n) (A008683) = A007431(n) (corrected by _Werner Schulte_, Sep 06 2020),
%C H^2 row sums = A018804. (End)
%C The Möbius inversion principle of Richard Dedekind and Joseph Liouville (1857), cf. "Concrete Mathematics", p. 136, is equivalent to the statement that row sums are the row index n. - _Gary W. Adamson_, Aug 03 2008
%C The multivariable row polynomials give n times the cycle index for the cyclic group C_n, called Z(C_n) (see the MathWorld link with the Harary reference): n*Z(C_n) = Sum_{k=1..n} T(n,k)*(y_{n/k})^k, n >= 1. E.g., 6*Z(C_6) = 2*(y_6)^1 + 2*(y_3)^2 + 1*(y_2)^3 + 1*(y_1)^6. - _Wolfdieter Lang_, May 22 2012
%C See A102190 (no 0's, rows reversed). - _Wolfdieter Lang_, May 29 2012
%C This is the number of permutations in the n-th cyclic group which are the product of k disjoint cycles. - _Robert A. Beeler_, Aug 09 2013
%D Ronald L. Graham, D. E. Knuth, Oren Patashnik, Concrete Mathematics, Addison-Wesley, 2nd ed., 1994, p. 136.
%H Reinhard Zumkeller, <a href="/A054523/b054523.txt">Rows n = 1..125 of triangle, flattened</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/CycleIndex.html">Cycle Index</a>.
%F Sum_{k=1..n} k * T(n, k) = A018804(n). - _Gary W. Adamson_, Jan 08 2007
%F Equals A054525 * A126988 as infinite lower triangular matrices. - _Gary W. Adamson_, Aug 03 2008
%F From _Werner Schulte_, Sep 06 2020: (Start)
%F Sum_{k=1..n} T(n,k) * A000010(k) = A029935(n) for n > 0.
%F Sum_{k=1..n} k^2 * T(n,k) = A069097(n) for n > 0. (End)
%F From _G. C. Greubel_, Jun 24 2024: (Start)
%F T(2*n-1, n) = A000007(n-1), n >= 1.
%F T(2*n, n) = A000012(n), n >= 1.
%F Sum_{k=1..n} (-1)^(k-1)*T(n, k) = (1 - (-1)^n)*n/2.
%F Sum_{k=1..floor(n+1)/2} T(n-k+1, k) = A092843(n+1).
%F Sum_{k=1..n} (k+1)*T(n, k) = A209295(n).
%F Sum_{k=1..n} k^3 * T(n, k) = A343497(n).
%F Sum_{k=1..n} k^4 * T(n, k) = A343498(n).
%F Sum_{k=1..n} k^5 * T(n, k) = A343499(n). (End)
%e Triangle begins
%e 1;
%e 1, 1;
%e 2, 0, 1;
%e 2, 1, 0, 1;
%e 4, 0, 0, 0, 1;
%e 2, 2, 1, 0, 0, 1;
%e 6, 0, 0, 0, 0, 0, 1;
%e 4, 2, 0, 1, 0, 0, 0, 1;
%e 6, 0, 2, 0, 0, 0, 0, 0, 1;
%e 4, 4, 0, 0, 1, 0, 0, 0, 0, 1;
%e 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1;
%e 4, 2, 2, 2, 0, 1, 0, 0, 0, 0, 0, 1;
%p A054523 := proc(n,k) if n mod k = 0 then numtheory[phi](n/k) ; else 0; end if; end proc: # _R. J. Mathar_, Apr 11 2011
%t T[n_, k_]:= If[k==n,1,If[Divisible[n, k], EulerPhi[n/k], 0]];
%t Table[T[n,k], {n,15}, {k,n}]//Flatten (* _G. C. Greubel_, Dec 15 2017 *)
%o (Haskell)
%o a054523 n k = a054523_tabl !! (n-1) !! (k-1)
%o a054523_row n = a054523_tabl !! (n-1)
%o a054523_tabl = map (map (\x -> if x == 0 then 0 else a000010 x)) a126988_tabl
%o -- _Reinhard Zumkeller_, Jan 20 2014
%o (PARI) for(n=1, 10, for(k=1, n, print1(if(!(n % k), eulerphi(n/k), 0), ", "))) \\ _G. C. Greubel_, Dec 15 2017
%o (Magma)
%o A054523:= func< n,k | k eq n select 1 else (n mod k) eq 0 select EulerPhi(Floor(n/k)) else 0 >;
%o [A054523(n,k): k in [1..n], n in [1..15]]; // _G. C. Greubel_, Jun 24 2024
%o (SageMath)
%o def A054523(n,k):
%o if (k==n): return 1
%o elif (n%k)==0: return euler_phi(int(n//k))
%o else: return 0
%o flatten([[A054523(n,k) for k in range(1,n+1)] for n in range(1,16)]) # _G. C. Greubel_, Jun 24 2024
%Y Cf. A000005, A000007, A000010, A000012, A000203, A007431, A008683.
%Y Cf. A038040, A051731, A054521, A054525, A102190, A126988.
%Y Sums incliude: A029935, A069097, A092843 (diagonal), A209295.
%Y Sums of the form Sum_{k} k^p * T(n, k): A000027 (p=0), A018804 (p=1), A069097 (p=2), A343497 (p=3), A343498 (p=4), A343499 (p=5).
%K nonn,tabl
%O 1,4
%A _N. J. A. Sloane_, Apr 09 2000