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!)
A369736 Triangle read by rows. T(n, k) = 0 if n - k is odd otherwise if 4 divides n - k then 1 otherwise -1. 1
1, 0, 1, -1, 0, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 0, 1, 0, -1, 0, 1, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
Signed version of A128174.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..11475 (rows 0..150 of the triangle, flattened).
MAPLE
T := (n, k) -> if irem(n - k, 2) = 1 then 0 elif irem(n - k, 4) = 0 then 1 else -1 fi: seq(seq(T(n, k), k = 0..n), n = 0..11);
MATHEMATICA
A369736[n_, k_] := Which[OddQ[n-k], 0, Divisible[n-k, 4], 1, True, -1];
Table[A369736[n, k], {n, 0, 15}, {k, 0, n}] (* Paolo Xausa, Mar 02 2024 *)
CROSSREFS
Row sums: A133872 (period 4: repeat [1, 1, 0, 0]).
Alternating row sums: A219977 (period 4: repeat [1, -1, 0, 0]).
Central terms: A056594 (period 4: repeat [1, 0, -1, 0]).
Cf. A128174.
Sequence in context: A024711 A286990 A249866 * A128174 A096055 A260456
KEYWORD
sign,tabl,easy
AUTHOR
Peter Luschny, Mar 02 2024
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 21 05:34 EDT 2024. Contains 372728 sequences. (Running on oeis4.)