OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
Triangle begins:
0;
0, 1;
2, 1, 2;
0, 0, 0, 0;
2, 1, 3, 4, 2;
2, 4, 2, 4, 2, 4;
MAPLE
A175620 := proc(n, k) modp(2^(ithprime(n)-k-1) , n) ; end proc: # R. J. Mathar, Dec 14 2010
MATHEMATICA
Flatten[Table[PowerMod[2, Prime[n]-k-1, n], {n, 20}, {k, n}]] (* Harvey P. Dale, Dec 10 2012 *)
PROG
(Magma)
[Modexp(2, NthPrime(n)-k-1, n): k in [1..n], n in [1..15]]; // G. C. Greubel, Apr 12 2024
(SageMath)
flatten([[pow(2, nth_prime(n)-k-1, n) for k in range(1, n+1)] for n in range(1, 16)]) # G. C. Greubel, Apr 12 2024
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Juri-Stepan Gerasimov, Dec 12 2010
STATUS
approved