The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A049759 Triangular array T read by rows: T(n,k)=n^2 mod k, for k=1,2,...,n, n=1,2,... 7
 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 4, 1, 0, 0, 0, 1, 0, 4, 4, 1, 0, 0, 1, 0, 1, 1, 3, 4, 1, 0, 0, 0, 1, 0, 0, 4, 2, 4, 1, 0, 0, 1, 1, 1, 1, 1, 2, 1, 4, 1, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 4, 1, 0, 0, 1, 1, 1, 4, 1, 1, 1, 7, 9, 4, 1, 0 (list; table; graph; refs; listen; history; text; internal format)
 OFFSET 1,26 LINKS G. C. Greubel, Rows n = 1..100 of triangle, flattened EXAMPLE Triangle begins:   0;   0, 0;   0, 1, 0;   0, 0, 1, 0;   0, 1, 1, 1, 0;   0, 0, 0, 0, 1, 0;   0, 1, 1, 1, 4, 1, 0;   0, 0, 1, 0, 4, 4, 1, 0;   0, 1, 0, 1, 1, 3, 4, 1, 0;   0, 0, 1, 0, 0, 4, 2, 4, 1, 0;   0, 1, 1, 1, 1, 1, 2, 1, 4, 1, 0;   0, 0, 0, 0, 4, 0, 4, 0, 0, 4, 1, 0;   0, 1, 1, 1, 4, 1, 1, 1, 7, 9, 4, 1, 0; MAPLE seq(seq( `mod`(n^2, k), k = 1..n), n = 1..15); # G. C. Greubel, Dec 13 2019 MATHEMATICA Table[PowerMod[n, 2, k], {n, 15}, {k, n}]//Flatten (* G. C. Greubel, Dec 13 2019 *) PROG (PARI) tabl(nn) = {for (n=1, nn, for (k=1, n, print1(n^2 % k, ", "); ); print(); ); } \\ Michel Marcus, Mar 31 2014 (MAGMA) [[Modexp(n, 2, k): k in [1..n]]: n in [1..15]]; // G. C. Greubel, Dec 13 2019 (Sage) [[power_mod(n, 2, k) for k in (1..n)] for n in (1..15)] # G. C. Greubel, Dec 13 2019 (GAP) Flat(List([1..15], n-> List([1..n], k-> PowerMod(n, 2, k) ))); # G. C. Greubel, Dec 13 2019 CROSSREFS Cf. A048152. Sequence in context: A255329 A127560 A098172 * A265421 A137252 A228623 Adjacent sequences:  A049756 A049757 A049758 * A049760 A049761 A049762 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 20 12:05 EDT 2021. Contains 347586 sequences. (Running on oeis4.)