The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A166865 Triangle read by rows: R(n,k)=prime(k)^(prime(n)-2) mod n, 1<=k<=n. 0
0, 0, 1, 2, 0, 2, 0, 3, 1, 3, 2, 3, 0, 2, 1, 2, 3, 5, 1, 5, 1, 1, 6, 6, 0, 1, 6, 6, 0, 3, 5, 7, 3, 5, 1, 3, 8, 0, 8, 1, 8, 1, 8, 1, 8, 8, 7, 5, 3, 1, 7, 3, 9, 7, 9, 6, 4, 9, 8, 0, 6, 2, 7, 1, 8, 5, 8, 3, 5, 7, 11, 1, 5, 7, 11, 5, 7, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Row sums: 0, 1, 4, 7, 8, 17, 26, 27, 43, 59, 56, 71, …, .
LINKS
EXAMPLE
Triangle begins:
0,
0, 1,
2, 0, 2,
0, 3, 1, 3,
2, 3, 0, 2, 1,
2, 3, 5, 1, 5, 1,
MATHEMATICA
t[n_, k_] := Mod[Prime@ k^(Prime@ n - 2), n]; Table[ t[n, k], {n, 12}, {k, n}] // Flatten
CROSSREFS
Sequence in context: A025804 A042961 A029190 * A300575 A029189 A035432
KEYWORD
nonn,tabl
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 June 6 13:43 EDT 2024. Contains 373128 sequences. (Running on oeis4.)