A106476 Sequence array of Euler phi function.
1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 4, 2, 2, 1, 1, 2, 4, 2, 2, 1, 1, 6, 2, 4, 2, 2, 1, 1, 4, 6, 2, 4, 2, 2, 1, 1, 6, 4, 6, 2, 4, 2, 2, 1, 1, 4, 6, 4, 6, 2, 4, 2, 2, 1, 1, 10, 4, 6, 4, 6, 2, 4, 2, 2, 1, 1, 4, 10, 4, 6, 4, 6, 2, 4, 2, 2, 1, 1, 12, 4, 10, 4, 6, 4, 6, 2, 4, 2, 2, 1, 1, 6, 12, 4, 10, 4, 6, 4, 6, 2, 4, 2, 2, 1, 1
Offset: 0
Examples
Triangle begins: 1; 1,1; 2,1,1; 2,2,1,1; 4,2,2,1,1; 2,4,2,2,1,1;
Programs
-
Mathematica
T[n_, k_] := If[k <= n, EulerPhi[n - k + 1], 0]; Table[T[n, k], {n, 0, 13}, {k, 0, n}] // Flatten (* Amiram Eldar, Nov 16 2024 *)
Formula
Triangle T(n, k) = if(k <= n, phi(n-k+1), 0).
Comments