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!)
A175620 Triangle read by rows: T(n,k) = 2^(prime(n) - k - 1) mod n, 1 <= k <= n. 2
0, 0, 1, 2, 1, 2, 0, 0, 0, 0, 2, 1, 3, 4, 2, 2, 4, 2, 4, 2, 4, 1, 4, 2, 1, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 4, 2, 1, 5, 7, 8, 4, 2, 8, 4, 2, 6, 8, 4, 2, 6, 8, 4, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1, 6, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 2, 1, 7, 10, 5, 9, 11, 12, 6, 3, 8 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
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
Sequence in context: A152439 A070965 A079548 * A319812 A079071 A322795
KEYWORD
nonn,tabl,changed
AUTHOR
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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)