|
|
A177207
|
|
Triangle read by rows: R(n,k) = 2^(n-k) mod n.
|
|
0
|
|
|
0, 0, 1, 1, 2, 1, 0, 0, 2, 1, 1, 3, 4, 2, 1, 2, 4, 2, 4, 2, 1, 1, 4, 2, 1, 4, 2, 1, 0, 0, 0, 0, 0, 4, 2, 1, 4, 2, 1, 5, 7, 8, 4, 2, 1, 2, 6, 8, 4, 2, 6, 8, 4, 2, 1, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 2, 1, 1, 7, 10, 5, 9, 11, 12, 6, 3, 8, 4, 2, 1, 2, 8, 4, 2, 8, 4, 2, 8, 4, 2, 8, 4, 2, 1
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
LINKS
|
|
|
EXAMPLE
|
Triangle begins:
0;
0, 1;
1, 2, 1;
0, 0, 2, 1;
1, 3, 4, 2, 1;
2, 4, 2, 4, 2, 1;
|
|
MATHEMATICA
|
Array[PowerMod[2, # - Range[#], #] &, 15] (* Paolo Xausa, Jun 28 2024 *)
|
|
PROG
|
(PARI) row(n) = vector(n, k, lift(Mod(2, n)^(n-k))); \\ Michel Marcus, Jun 27 2024
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|