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!)
A155102 Triangle T(n,k) read by rows. If n=k then T(n,k)=1, elseif n=2*k then T(n,k)=-(k+1), else T(n,k)=0. 2
1, -2, 1, 0, 0, 1, 0, -3, 0, 1, 0, 0, 0, 0, 1, 0, 0, -4, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, -5, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, -6, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, -8, 0, 0, 0, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Matrix inverse of this triangle is A155103.
LINKS
EXAMPLE
Table begins:
1,
-2,1,
0,0,1,
0,-3,0,1,
0,0,0,0,1,
0,0,-4,0,0,1,
0,0,0,0,0,0,1,
0,0,0,-5,0,0,0,1,
MATHEMATICA
t[n_, k_] := Which[n == k, 1, n == 2k, -k - 1, True, 0]; Flatten[ Table[t[n, k], {n, 1, 14}, {k, 1, n}]] (* Jean-François Alcover, Jul 19 2012 *)
PROG
(PARI) T(n, k)=if(n==k, 1, if(n==2*k, -(k+1))); for(n=1, 20, for(k=1, n, print1(T(n, k), ", ")); print())
(Excel) =if(row()=column(); 1; if(and(row()>=column()*2; row()<=column()*2); -1; 0))*(row()-column()+1)
CROSSREFS
Cf. A155103.
Sequence in context: A056560 A345415 A096608 * A237621 A214625 A363339
KEYWORD
sign,tabl
AUTHOR
Mats Granvik, Jan 20 2009
EXTENSIONS
Definition clarified by Mats Granvik, Dec 05 2010
STATUS
approved

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 June 24 07:41 EDT 2024. Contains 373663 sequences. (Running on oeis4.)