OFFSET
1,3
COMMENTS
The leftmost diagonal is all 1s because all even-indexed powers of 2 are congruent to 1 mod 3 (since 3 is the first even-indexed prime).
EXAMPLE
Triangle begins:
1
1, 4
1, 2, 3
1, 1, 12, 7
1, 4, 9, 9, 24
1, 2, 10, 17, 9, 25
For example, R(4, 4) = 7 because 2^(2 * 4 - 2) = 2^6 = 64; the (2 * 4)th prime is 19; and 64 divided by 19 leaves a remainder of 7.
MATHEMATICA
ColumnForm[Table[Mod[2^(2n - 2), Prime[2k]], {n, 12}, {k, n}], Center]
Table[PowerMod[2, 2n-2, Prime[2k]], {n, 15}, {k, n}]//Flatten (* Harvey P. Dale, Jul 15 2021 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Juri-Stepan Gerasimov, Dec 06 2010
STATUS
approved