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!)
A202298 If A is the n X n matrix containing the first n^2 primes, a(n) is the sum of the elements of the square of A. 1
4, 155, 3702, 39933, 244676, 1046455, 3635046, 10406049, 26595892, 60712839, 128248632, 253217949, 472633812, 837636667, 1431878468, 2356057659, 3756191658, 5844567389, 8865989698, 13147819241, 19100995732, 27324708263, 38402817766, 53116446341, 72537301810, 97894517685 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..26.

EXAMPLE

Mn is an n x n matrix whose entries are the first n^2 primes:

M1 = [2],

M2 = [2,3; 5,7],

M3 = [2,3,5; 7,11,13; 17,19,23],

M2*M2 = [19,27; 45,64],

Thus A(2) = 19 + 27 + 45 + 64 = 155.

MAPLE

A202298 := proc(n)

    local A, A2, r, c ;

    A := Matrix(n, n) ;

    for r from 0 to n-1 do

    for c from 0 to n-1 do

        A[r+1, c+1] := ithprime(1+r*n+c) ;

    end do:

    end do:

    A2 := A^2 ;

    add(add(A2[r, c], r=1..n), c=1..n) ;

end proc: # R. J. Mathar, Feb 09 2017

PROG

(PARI) a(n) = my(m = matrix(n, n, i, j, prime((i-1)*n+j))); my(mm = m^2); sum(k=1, n, vecsum(mm[k, ])); \\ Michel Marcus, Jan 28 2017

CROSSREFS

Cf. A109724.

Sequence in context: A300530 A303898 A093977 * A003736 A210837 A289231

Adjacent sequences:  A202295 A202296 A202297 * A202299 A202300 A202301

KEYWORD

nonn

AUTHOR

Stephen Balaban, Dec 15 2011

EXTENSIONS

More terms from Michel Marcus, Jan 28 2017

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 21:49 EST 2022. Contains 350565 sequences. (Running on oeis4.)