%I #47 Nov 14 2018 15:27:15
%S 1,1,1,1,1,1,1,2,2,1,1,2,4,2,1,1,4,8,8,4,1,1,2,8,8,8,2,1,1,6,12,24,24,
%T 12,6,1,1,4,24,24,48,24,24,4,1,1,6,24,72,72,72,72,24,6,1,1,4,24,48,
%U 144,72,144,48,24,4,1,1,10,40,120,240,360,360,240,120
%N Triangle read by rows: T(n,k) = A001088(n)/(A001088(k)*A001088(n-k)).
%C We assume that A001088(0)=1 since it would be the empty product.
%C These are the generalized binomial coefficients associated with Euler's totient function A000010.
%C Another name might be the totienomial coefficients.
%H Reinhard Zumkeller, <a href="/A238453/b238453.txt">Rows n = 0..125 of triangle, flattened</a>
%H Tom Edgar, <a href="http://www.emis.de/journals/INTEGERS/papers/o62/o62.Abstract.html">Totienomial Coefficients</a>, INTEGERS, 14 (2014), #A62.
%H Tom Edgar and Michael Z. Spivey, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL19/Edgar/edgar3.html">Multiplicative functions, generalized binomial coefficients, and generalized Catalan numbers</a>, Journal of Integer Sequences, Vol. 19 (2016), Article 16.1.6.
%H Donald E. Knuth and Herbert S. Wilf, <a href="http://www.math.upenn.edu/~wilf/website/dm36.pdf">The power of a prime that divides a generalized binomial coefficient</a>, J. Reine Angew. Math., 396:212-219, 1989.
%F T(n,k) = A001088(n)/(A001088(k)*A001088(n-k)).
%F T(n,k) = prod_{i=1..n} A000010(i)/(prod_{i=1..k} A000010(i)*prod_{i=1..n-k} A000010(i)).
%F T(n,k) = A000010(n)/n*(k/A000010(k)*T(n-1,k-1)+(n-k)/A000010(n-k)*T(n-1,k)).
%F T(n+1, 2) = A083542(n). - _Michael Somos_, Aug 26 2014
%F T(n,k) = Product_{i=1..k} (phi(n+1-i)/phi(i)), where phi is Euler's totient function (A000010). - _Werner Schulte_, Nov 14 2018
%e The first five terms in Euler's totient function are 1,1,2,2,4 and so T(4,2) = 2*2*1*1/((1*1)*(1*1))=4 and T(5,3) = 4*2*2*1*1/((2*1*1)*(1*1))=8.
%e The triangle begins
%e 1
%e 1 1
%e 1 1 1
%e 1 2 2 1
%e 1 2 4 2 1
%e 1 4 8 8 4 1
%e 1 2 8 8 8 2 1
%t f[n_] := Product[EulerPhi@ k, {k, n}]; Table[f[n]/(f[k] f[n - k]), {n, 0, 11}, {k, 0, n}] // Flatten (* _Michael De Vlieger_, Apr 19 2016 *)
%o (Sage)
%o q=100 #change q for more rows
%o P=[euler_phi(i) for i in [0..q]]
%o [[prod(P[1:n+1])/(prod(P[1:k+1])*prod(P[1:(n-k)+1])) for k in [0..n]] for n in [0..len(P)-1]] #generates the triangle up to q rows.
%o (Haskell)
%o a238453 n k = a238453_tabl !! n !! k
%o a238453_row n = a238453_tabl !! n
%o a238453_tabl = [1] : f [1] a000010_list where
%o f xs (z:zs) = (map (div y) $ zipWith (*) ys $ reverse ys) : f ys zs
%o where ys = y : xs; y = head xs * z
%o -- _Reinhard Zumkeller_, Feb 27 2014
%o (PARI) T(n,k)={prod(i=1, k, eulerphi(n+1-i)/eulerphi(i))} \\ _Andrew Howroyd_, Nov 13 2018
%Y Cf. A000010, A001088, A083542.
%K nonn,tabl
%O 0,8
%A _Tom Edgar_, Feb 26 2014
|