login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A134522
a(n) = 2^n + ceiling(n/2).
3
1, 3, 5, 10, 18, 35, 67, 132, 260, 517, 1029, 2054, 4102, 8199, 16391, 32776, 65544, 131081, 262153, 524298, 1048586, 2097163, 4194315, 8388620, 16777228, 33554445, 67108877, 134217742, 268435470, 536870927, 1073741839, 2147483664, 4294967312, 8589934609
OFFSET
0,2
FORMULA
From Andrew Howroyd, Aug 10 2018: (Start)
a(n) = A000079(n) + A110654(n).
a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + 2*a(n-4).
G.f.: (1 - 3*x^2 + x^3)/((1 - x)^2*(1 + x)*(1 - 2*x)).
(End)
a(n) = Sum_{k=1..n+1} C(n+1,k)^(k mod 2). - Wesley Ivan Hurt, Nov 20 2021
PROG
(PARI) a(n)=2^n + (n+1)\2; \\ Andrew Howroyd, Aug 10 2018
(PARI) Vec((1 - 3*x^2 + x^3)/((1 - x)^2*(1 + x)*(1 - 2*x)) + O(x^40)) \\ Andrew Howroyd, Aug 10 2018
CROSSREFS
Row sums of A134521.
Sequence in context: A154949 A318248 A107232 * A001445 A192860 A125750
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Oct 29 2007
EXTENSIONS
Name changed, a(8) inserted and a(14)-a(33) from Andrew Howroyd, Aug 10 2018
STATUS
approved