OFFSET
0,3
LINKS
Problem of the week, Web site - problem 855
FORMULA
Harris Kwong (kwong(AT)cs.fredonia.edu): 13 Binomial[ n, 3 ] + 5 Binomial[ n, 2 ] if n is odd or 13 Binomial[ n, 3 ] + 5 Binomial[ n, 2 ] - n/2 if n is even.
Contribution from Sergey Perepechko, Dec 03 2008: (Start)
G.f.: 4*x^2*(2*x^3+5*x^2+5*x+1)/((x - 1)^4*(x + 1)^2).
Also a(n)=n*((n-1)*(13*n-8)/6-[n/2]), where [x]=floor(x).
Also a(n)+(3*n-1)*binomial(n,3) gives number of cycles of length 3 in a queen's graph associated with this chessboard (see A144298). (End)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved