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!)
A071289 a(n) = n*(n^2 + 1) if n is even, otherwise (n - 1/2)*(n^2 + 1). 0
0, 1, 10, 25, 68, 117, 222, 325, 520, 697, 1010, 1281, 1740, 2125, 2758, 3277, 4112, 4785, 5850, 6697, 8020, 9061, 10670, 11925, 13848, 15337, 17602, 19345, 21980, 23997, 27030, 29341, 32800, 35425, 39338, 42297, 46692, 50005, 54910, 58597, 64040, 68121, 74130 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Sum of the numbers along the diagonals of an n X n square array whose elements are the numbers from 1..n^2, listed in increasing order by rows (see example). - Wesley Ivan Hurt, May 15 2021

REFERENCES

T. A. Gulliver, Sequences from Arrays of Integers, Int. Math. Journal, Vol. 1, No. 4, pp. 323-332, 2002.

LINKS

Table of n, a(n) for n=0..42.

Index entries for linear recurrences with constant coefficients, signature (1,3,-3,-3,3,1,-1).

FORMULA

From R. J. Mathar, Oct 19 2010: (Start)

a(n) = a(n-1) + 3*a(n-2) - 3*a(n-3) - 3*a(n-4) + 3*a(n-5) + a(n-6) - a(n-7).

G.f.: x*(1 + 9*x + 12*x^2 + 16*x^3 + 7*x^4 + 3*x^5) / ( (1+x)^3*(x-1)^4 ). (End)

a(n) = (n^2+1)*(4*n-1+(-1)^n)/4. - Wesley Ivan Hurt, May 15 2021

EXAMPLE

From Wesley Ivan Hurt, May 15 2021: (Start)

[1 2 3 4 5]

[1 2 3 4] [6 7 8 9 10]

[1 2 3] [5 6 7 8] [11 12 13 14 15]

[1 2] [4 5 6] [9 10 11 12] [16 17 18 19 20]

[1] [3 4] [7 8 9] [13 14 15 16] [21 22 23 24 25]

------------------------------------------------------------------------

n 1 2 3 4 5

------------------------------------------------------------------------

a(n) 1 10 25 68 117

------------------------------------------------------------------------

(End)

MATHEMATICA

Array[If[EvenQ[#], #(#^2+1), (#-1/2)(#^2+1)]&, 50, 0] (* Harvey P. Dale, Sep 20 2013 *)

CROSSREFS

Sequence in context: A137930 A251310 A251194 * A268303 A248833 A220039

Adjacent sequences: A071286 A071287 A071288 * A071290 A071291 A071292

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane, Jun 12 2002

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 January 27 01:46 EST 2023. Contains 359836 sequences. (Running on oeis4.)