login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159914 Half the number of (n-3)-element subsets of {1,...,n} whose elements sum up to an odd value. 1
0, 0, 0, 0, 1, 3, 5, 8, 14, 22, 30, 40, 55, 73, 91, 112, 140, 172, 204, 240, 285, 335, 385, 440, 506, 578, 650, 728, 819, 917, 1015, 1120, 1240, 1368, 1496, 1632, 1785, 1947, 2109, 2280, 2470, 2670, 2870, 3080, 3311, 3553, 3795, 4048, 4324, 4612, 4900, 5200 (list; graph; refs; listen; history; internal format)
OFFSET

0,6

COMMENTS

Half the preantepenultimate column, i.e. T[n,n-3], of the triangle defined in A159916.

This is a linear recurring sequence with constant coefficients and characteristic polynomial x^8 - 4*x^7 + 8*x^6 - 12*x^5 + 14*x^4 - 12*x^3 + 8*x^2 - 4*x + 1 = (x-1)^4 (x^2+1)^2?

FORMULA

G.f.: x^4 (1-x+x^2) (1-x)^-4 (1+x^2)^-2.

a(n) = A159916(n(n-1)/2+n-3)/2 = T[n,n-3]/2 as defined there.

a(2k) = k(k-1)(2k-1)/6

EXAMPLE

The first nontrivial term a(4)=1 is half the number of 4-3=1-element subsets of {1,2,3,4} whose elements have an odd sum: {1} and {3}.

a(5)=3 is half the number of 5-3=2-element subsets of {1,2,3,4,5} whose elements have an odd sum: {1,2}, {1,4}, {2,3}, {2,5}, {3,4} and {4,5}.

PROG

(PARI) A159914(n)=polcoeff((1-x+x^2)/(1-x)^4/(1+x^2)^2+O(x^(n-3)), n-4)

CROSSREFS

Sequence in context: A070948 A141739 A094007 * A153251 A109022 A023596

Adjacent sequences:  A159911 A159912 A159913 * A159915 A159916 A159917

KEYWORD

nonn

AUTHOR

M. F. Hasler (www.univ-ag.fr/~mhasler), May 02 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 09:18 EST 2012. Contains 205614 sequences.