A185018 Inverse to sequence matrix for natural numbers.
1, -2, 1, 1, -2, 1, 0, 1, -2, 1, 0, 0, 1, -2, 1, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1
Offset: 0
Examples
Triangle begins : 1 ; -2, 1 ; 1, -2, 1 ; 0, 1, -2, 1 ; 0, 0, 1, -2, 1 ; 0, 0, 0, 1, -2, 1 ; 0, 0, 0, 0, 1, -2, 1 ; 0, 0, 0, 0, 0, 1, -2, 1 ; 0, 0, 0, 0, 0, 0, 1, -2, 1 ;
Programs
-
Mathematica
Array[PadLeft[{1, -2, 1}, #] &, 15] (* Paolo Xausa, Jun 27 2024 *)
Formula
T(n,n)=1, T(n,n-1)=-2, T(n,n-2)=1, T(n,k)=0 where k
Comments