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!)
A049767 Triangular array T, read by rows: T(n,k) = (k^2 mod n) + (n^2 mod k), for k = 1..n and n >= 1. 5

%I #21 Sep 08 2022 08:44:58

%S 0,1,0,1,2,0,1,0,2,0,1,5,5,2,0,1,4,3,4,2,0,1,5,3,3,8,2,0,1,4,2,0,5,8,

%T 2,0,1,5,0,8,8,3,8,2,0,1,4,10,6,5,10,11,8,2,0,1,5,10,6,4,4,7,10,8,2,0,

%U 1,4,9,4,5,0,5,4,9,8,2,0,1,5,10,4

%N Triangular array T, read by rows: T(n,k) = (k^2 mod n) + (n^2 mod k), for k = 1..n and n >= 1.

%H G. C. Greubel, <a href="/A049767/b049767.txt">Rows n = 1..100 of triangle, flattened</a>

%F T(n, k) = A048152(n, k) + A049759(n, k). - _Michel Marcus_, Nov 21 2019

%e Triangle T(n,k) (with rows n >= 1 and columns k >= 1) begins as follows:

%e 0;

%e 1, 0;

%e 1, 2, 0;

%e 1, 0, 2, 0;

%e 1, 5, 5, 2, 0;

%e 1, 4, 3, 4, 2, 0;

%e 1, 5, 3, 3, 8, 2, 0;

%e 1, 4, 2, 0, 5, 8, 2, 0;

%e 1, 5, 0, 8, 8, 3, 8, 2, 0;

%e 1, 4, 10, 6, 5, 10, 11, 8, 2, 0;

%e ...

%p seq(seq( `mod`(k^2, n) + `mod`(n^2, k), k = 1..n), n = 1..15); # _G. C. Greubel_, Dec 13 2019

%t Table[PowerMod[k,2,n] + PowerMod[n,2,k], {n,15}, {k,n}]//Flatten (* _G. C. Greubel_, Dec 13 2019 *)

%o (PARI) T(n,k) = lift(Mod(k,n)^2) + lift(Mod(n,k)^2);

%o for(n=1,15, for(k=1,n, print1(T(n,k), ", "))) \\ _G. C. Greubel_, Dec 13 2019

%o (Magma) [[Modexp(k,2,n) + Modexp(n,2,k): k in [1..n]]: n in [1..15]]; // _G. C. Greubel_, Dec 13 2019

%o (Sage) [[power_mod(k,2,n) + power_mod(n,2,k) for k in (1..n)] for n in (1..15)] # _G. C. Greubel_, Dec 13 2019

%o (GAP) Flat(List([1..15], n-> List([1..n], k-> PowerMod(k,2,n) + PowerMod(n,2,k) ))); # _G. C. Greubel_, Dec 13 2019

%Y Row sums are in A049768.

%Y Cf. A048152, A049759.

%K nonn,tabl

%O 1,5

%A _Clark Kimberling_

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 25 13:23 EDT 2024. Contains 371971 sequences. (Running on oeis4.)