The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A176224 A symmetrical triangle sequence: T(n, k) = q^k + q^(n-k) - q^n, with q=2. 4
1, 1, 1, 1, 0, 1, 1, -2, -2, 1, 1, -6, -8, -6, 1, 1, -14, -20, -20, -14, 1, 1, -30, -44, -48, -44, -30, 1, 1, -62, -92, -104, -104, -92, -62, 1, 1, -126, -188, -216, -224, -216, -188, -126, 1, 1, -254, -380, -440, -464, -464, -440, -380, -254, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,8
COMMENTS
Row sums are: {1, 2, 2, -2, -18, -66, -194, -514, -1282, -3074, -7170, ...}.
LINKS
FORMULA
T(n,k) = q^k + q^(n-k) - q^n, with q = 2.
EXAMPLE
Triangle begins as:
1;
1, 1;
1, 0, 1;
1, -2, -2, 1;
1, -6, -8, -6, 1;
1, -14, -20, -20, -14, 1;
1, -30, -44, -48, -44, -30, 1;
1, -62, -92, -104, -104, -92, -62, 1;
1, -126, -188, -216, -224, -216, -188, -126, 1;
1, -254, -380, -440, -464, -464, -440, -380, -254, 1;
1, -510, -764, -888, -944, -960, -944, -888, -764, -510, 1;
MAPLE
q:=2; seq(seq(q^k +q^(n-k) -q^n, k=0..n), n=0..12); # G. C. Greubel, Nov 23 2019
MATHEMATICA
T[n_, k_, q_]:= q^k +q^(n-k) -q^n; Table[T[n, k, 2], {n, 0, 12}, {k, 0, n}]//Flatten (* modified by G. C. Greubel, Nov 23 2019 *)
PROG
(PARI) T(n, k, q) = my(q=2); q^k +q^(n-k) -q^n; \\ G. C. Greubel, Nov 23 2019
(Magma) q:=2; [q^k +q^(n-k) -q^n : k in [0..n], n in [0..12]]; // G. C. Greubel, Nov 23 2019
(Sage) q=2; [[q^k +q^(n-k) -q^n for k in (0..n)] for n in (0..12)] # G. C. Greubel, Nov 23 2019
(GAP) q:=2;; Flat(List([0..12], n-> List([0..n], k-> q^k +q^(n-k) -q^n ))); # G. C. Greubel, Nov 23 2019
CROSSREFS
Cf. this sequence (q=2), A176225 (q=3), A176226 (q=5), A176227 (q=4).
Sequence in context: A127452 A263755 A135879 * A174640 A138169 A139331
KEYWORD
sign,tabl
AUTHOR
Roger L. Bagula, Apr 12 2010
EXTENSIONS
Edited by G. C. Greubel, Nov 23 2019
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 May 18 12:18 EDT 2024. Contains 372630 sequences. (Running on oeis4.)