login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077070 Triangle read by rows: T(n,k) is the power of 2 in denominator of coefficients of Legendre polynomials, where n >= 0 and 0 <= k <= n. 4

%I #41 Jan 29 2022 12:15:24

%S 0,1,1,3,2,3,4,4,4,4,7,5,6,5,7,8,8,7,7,8,8,10,9,10,8,10,9,10,11,11,11,

%T 11,11,11,11,11,15,12,13,12,14,12,13,12,15,16,16,14,14,15,15,14,14,16,

%U 16,18,17,18,15,17,16,17,15,18,17,18,19,19,19,19,18,18,18,18,19,19,19,19,22,20,21,20,22,19,20,19,22,20,21,20,22

%N Triangle read by rows: T(n,k) is the power of 2 in denominator of coefficients of Legendre polynomials, where n >= 0 and 0 <= k <= n.

%H Alois P. Heinz, <a href="/A077070/b077070.txt">Rows n = 0..200, flattened</a>

%F T(n, k) = A007814(A144816(n, k)). - _Michel Marcus_, Jan 29 2022

%F T(n, k) = 2*n - wt(n-k) - wt(k) where wt = A000120 is the binary weight. - _Kevin Ryde_, Jan 29 2022

%e Triangle T(n,k) (with rows n >= 0 and columns k >= 0) begins as follows:

%e 0;

%e 1, 1;

%e 3, 2, 3;

%e 4, 4, 4, 4;

%e 7, 5, 6, 5, 7;

%e 8, 8, 7, 7, 8, 8;

%e 10, 9, 10, 8, 10, 9, 10;

%e ...

%p T:= n-> (p-> seq(padic[ordp](denom(coeff(p, x, i)), 2)

%p , i=0..2*n, 2))(orthopoly[P](2*n, x)):

%p seq(T(n), n=0..12); # _Alois P. Heinz_, Jan 25 2022

%t T[n_, k_] := IntegerExponent[Denominator[Coefficient[LegendreP[2n, x], x, 2k]], 2]; Table[T[n, k], {n, 0, 11}, {k, 0, n}] // Flatten (* _Jean-François Alcover_, Apr 28 2017 *)

%o (PARI) {T(n, k) = if( k<0 || k>n, 0, -valuation( polcoeff( pollegendre(2*n), 2*k), 2))}

%o (PARI) T(n,k) = 2*n - hammingweight(n-k) - hammingweight(k); \\ _Kevin Ryde_, Jan 29 2022

%Y Cf. A005187 (column k=0), A101925 (column k=1), A077071 (row sums), A144816 (denominators).

%Y Cf. A000120, A007814.

%K nonn,tabl

%O 0,4

%A _Michael Somos_, Oct 25 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)