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!)
A106262 An invertible triangle of remainders of 2^n. 6
1, 0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 0, 2, 1, 0, 1, 0, 4, 2, 1, 0, 2, 0, 3, 4, 2, 1, 0, 1, 0, 1, 2, 4, 2, 1, 0, 2, 0, 2, 4, 1, 4, 2, 1, 0, 1, 0, 4, 2, 2, 0, 4, 2, 1, 0, 2, 0, 3, 4, 4, 0, 8, 4, 2, 1, 0, 1, 0, 1, 2, 1, 0, 7, 8, 4, 2, 1, 0, 2, 0, 2, 4, 2, 0, 5, 6, 8, 4, 2, 1, 0, 1, 0, 4, 2, 4, 0, 1, 2, 5, 8, 4, 2, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
T(n, k) = 2^(n-k) mod (k+2).
Sum_{k=0..n} T(n, k) = A106263(n) (row sums).
Sum_{k=0..floor(n/2)} T(n-k, k) = A106264(n) (diagonal sums).
From G. C. Greubel, Jan 10 2023: (Start)
T(n, 0) = A000007(n).
T(n, 1) = A000034(n+1).
T(2*n, n) = A213859(n).
T(2*n, n-1) = A015910(n+1).
T(2*n, n+1) = A294390(n+3).
T(2*n+1, n-1) = A112983(n+1).
T(2*n+1, n+1) = A294389(n+3).
T(2*n-1, n-1) = A062173(n+1). (End)
EXAMPLE
Triangle begins:
1;
0, 1;
0, 2, 1;
0, 1, 2, 1;
0, 2, 0, 2, 1;
0, 1, 0, 4, 2, 1;
0, 2, 0, 3, 4, 2, 1;
0, 1, 0, 1, 2, 4, 2, 1;
0, 2, 0, 2, 4, 1, 4, 2, 1;
0, 1, 0, 4, 2, 2, 0, 4, 2, 1;
MATHEMATICA
Table[PowerMod[2, n-k, k+2], {n, 0, 15}, {k, 0, n}]//Flatten (* G. C. Greubel, Jan 10 2023 *)
PROG
(Magma) [Modexp(2, n-k, k+2): k in [0..n], n in [0..15]]; // G. C. Greubel, Jan 10 2023
(SageMath) flatten([[power_mod(2, n-k, k+2) for k in range(n+1)] for n in range(16)]) # G. C. Greubel, Jan 10 2023
CROSSREFS
Cf. A106263 (row sums), A106264 (diagonal sums).
Sequence in context: A305259 A029370 A369572 * A025870 A104276 A216191
KEYWORD
easy,nonn,tabl
AUTHOR
Paul Barry, Apr 28 2005
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 13 03:50 EDT 2024. Contains 372497 sequences. (Running on oeis4.)