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!)
A258143 Row sums of A257241, Stifel's version of the arithmetical triangle. 3
1, 2, 6, 10, 25, 41, 98, 162, 381, 637, 1485, 2509, 5811, 9907, 22818, 39202, 89845, 155381, 354521, 616665, 1401291, 2449867, 5546381, 9740685, 21977515, 38754731, 87167163, 154276027, 345994215, 614429671, 1374282018, 2448023842 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) is the number of nonempty subsets of {1,2,...,n} that contain either more odd than even numbers or the same number of odd and even numbers. For example, for n=4, a(4)=10 and the 10 subsets are {1}, {3}, {1,3}, {1,2,3}, {1,3,4}; {1,2}, {1,4}, {2,3}, {3,4}, {1,2,3,4}. - Enrique Navarrete, Dec 16 2019
LINKS
FORMULA
a(n) = Sum_{m = 1 .. ceiling(n/2)} binomial(n, m), n >= 1.
a(n) = 2^n - 2 - Sum_{i=1..floor(n/2)-1} binomial(n, i), n >= 2; a(1)=1. - Enrique Navarrete, Dec 16 2019
a(2*k+1) = 2^(2*k+1) - (1 + A008549(k)), k >= 0.
a(2*k) = 2^(2*k) - (1 + A000346(k-1)), k >= 1.
O.g.f. for a(2*k+1), k >= 0: (2+x - (1-x)*c(x))/ ((1-4*x)*(1-x)), with the o.g.f. c(x) of A000108 (Catalan).
O.g.f. for a(2*(k+1)), k >= 0: (3 - (1-x)*c(x))/ ((1-4*x)*(1-x)).
O.g.f. for a(n), n >= 1: x*(2+3*x+x^2 - (1-x^2)*(1+x)*c(x^2))/((1-(2*x)^2)*(1-x^2).
EXAMPLE
n=3: a(3) = 2^3 - (1 + A008549(1)) = 8 - (1 + 1) = 6.
n=4: a(4) = 2^4 - (1 + A000346(1)) = 16 - (1 + 5) = 10.
PROG
(Haskell)
a258143 = sum . a257241_row -- Reinhard Zumkeller, May 22 2015
CROSSREFS
Sequence in context: A200220 A188224 A104142 * A369290 A079713 A055237
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, May 22 2015
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 April 24 11:39 EDT 2024. Contains 371936 sequences. (Running on oeis4.)