Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137931
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137931 Sum of the principal diagonals of a 2n X 2n spiral. +0
2
0, 10, 56, 170, 384, 730, 1240, 1946, 2880, 4074, 5560, 7370, 9536, 12090, 15064, 18490, 22400, 26826, 31800, 37354, 43520, 50330, 57816, 66010, 74944, 84650, 95160, 106506, 118720, 131834, 145880, 160890, 176896, 193930, 212024, 231210, 251520, 272986, 295640 (list; graph; listen)
OFFSET

0,2

COMMENT

2nX2n spirals of the form:

(Example of n = 2)

7...8...9...10

6...1...2...11

5...4...3...12

16..15..14..13

FORMULA

f(n) = -1 + n + Sum{k=0..2n, 2k^2-k+1}

a(n) = 2n^2 + 2n + (16n^3 + 2n)/3

G.f.:(2*x*(3*x+5)*(x+1))/(x-1)^4 [From Maksym Voznyy (voznyy(AT)mail.ru), Jul 27 2009]

EXAMPLE

a(0) = 2(0)^2 + 2(0) + (16(0)^3 + 2(0))/3 = 0

a(2) = 2(2)^2 + 2(2) + (16(2)^3 + 2(2))/3 = 56

PROGRAM

(Python) f = lambda n: -1 + n + sum(2*k**2 - k + 1 for k in range(0, 2*n+1))

(Python) a = lambda n: 2*n**2 + 2*n + (16*n**3 + 2*n)/3

CROSSREFS

Cf. A137928, A002061. A bisection of A137930.

Sequence in context: A001557 A164951 A000814 this_sequence A053493 A001786 A053309

Adjacent sequences: A137928 A137929 A137930 this_sequence A137932 A137933 A137934

KEYWORD

nonn,easy

AUTHOR

William A. Tedeschi (fynmun(AT)hotmail.com), Feb 29 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research