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!)
A155124 Triangle T(n, k) = 1-n if k=0 else 2, read by rows. 2
1, 0, 2, -1, 2, 2, -2, 2, 2, 2, -3, 2, 2, 2, 2, -4, 2, 2, 2, 2, 2, -5, 2, 2, 2, 2, 2, 2, -6, 2, 2, 2, 2, 2, 2, 2, -7, 2, 2, 2, 2, 2, 2, 2, 2, -8, 2, 2, 2, 2, 2, 2, 2, 2, 2, -9, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -11, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
From G. C. Greubel, Mar 25 2021: (Start)
T(n, k) = 1-n if k=0 else 2.
Sum_{k=0..n} T(n ,k) = n+1 = A000027(n+1). (End)
EXAMPLE
Triangle begins as:
1;
0, 2;
-1, 2, 2;
-2, 2, 2, 2;
-3, 2, 2, 2, 2;
-4, 2, 2, 2, 2, 2;
-5, 2, 2, 2, 2, 2, 2;
-6, 2, 2, 2, 2, 2, 2, 2;
-7, 2, 2, 2, 2, 2, 2, 2, 2;
-8, 2, 2, 2, 2, 2, 2, 2, 2, 2;
-9, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2;
MATHEMATICA
Table[CoefficientList[-(m-1) + 2*x*(1-x^m)/(1-x), x], {m, 0, 15}]//Flatten
Table[If[k==0, 1-n, 2], {n, 0, 15}, {k, 0, n}]//Flatten (* G. C. Greubel, Mar 25 2021 *)
PROG
(Magma) [k eq 0 select 1-n else 2: k in [0..n], n in [0..15]]; // G. C. Greubel, Mar 25 2021
(Sage) flatten([[1-n if k==0 else 2 for k in (0..n)] for n in (0..15)]) # G. C. Greubel, Mar 25 2021
CROSSREFS
Sequence in context: A254690 A156642 A360821 * A138033 A283876 A365663
KEYWORD
sign,tabl,easy,less
AUTHOR
Roger L. Bagula, Jan 20 2009
EXTENSIONS
Edited by G. C. Greubel, Mar 25 2021
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 April 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)