Write the numbers from 1 to n^2 in a spiraling square; a(n) is the total of the sums of the two diagonals.

A059924

Write the numbers from 1 to n^2 in a spiraling square; a(n) is the total of the sums of the two diagonals.

Terms

    a(0) =0a(1) =2a(2) =10a(3) =34a(4) =80a(5) =158a(6) =274a(7) =438a(8) =656a(9) =938a(10) =1290a(11) =1722a(12) =2240a(13) =2854a(14) =3570a(15) =4398a(16) =5344a(17) =6418a(18) =7626a(19) =8978a(20) =10480a(21) =12142a(22) =13970a(23) =15974a(24) =18160a(25) =20538a(26) =23114a(27) =25898a(28) =28896a(29) =32118

External references