OFFSET
1,8
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Triangle begins:
0;
0, 1;
1, 0, 1;
0, 3, 1, 3;
1, 1, 0, 1, 1;
MATHEMATICA
T[n_, k_] := Mod[ Prime[k]^(n - 1), n]; Table[ T[n, k], {n, 13}, {k, n}] // Flatten
Flatten[Table[PowerMod[Prime[k], n-1, n], {n, 20}, {k, n}]] (* Harvey P. Dale, Oct 13 2015 *)
PROG
(Magma)
[Modexp(NthPrime(k), n-1, n): k in [1..n], n in [1..15]]; // G. C. Greubel, Apr 12 2024
(SageMath)
flatten([[pow(nth_prime(k), n-1, n) for k in range(1, n+1)] for n in range(1, 16)]) # G. C. Greubel, Apr 12 2024
CROSSREFS
KEYWORD
AUTHOR
Juri-Stepan Gerasimov, Dec 12 2010
STATUS
approved