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”).

A088688
Binomial transform of A088689.
0
0, 1, 3, 6, 12, 27, 63, 141, 297, 594, 1146, 2169, 4095, 7827, 15291, 30582, 62256, 127791, 262143, 534129, 1078101, 2156202, 4282878, 8477181, 16777215, 33288711, 66311703, 132623406, 266043972, 534479427, 1073741823, 2154658101
OFFSET
0,3
FORMULA
a(n) = 2^n - cos(Pi*n/3) - 3^(n/2)*sin(Pi*n/6)/sqrt(3).
O.g.f.: -x(1-3x+3x^2+x^3)/[(2x-1)(x^2-x+1)(3x^2-3x+1)]. - R. J. Mathar, Apr 02 2008
MATHEMATICA
Table[Sum[Binomial[n, k] * Mod[k*Floor[3*(k+1)/2] - 2*k, 3], {k, 0, n}], {n, 0, 40}] (* Vaclav Kotesovec, Oct 30 2017 *)
CROSSREFS
Cf. A001045.
Sequence in context: A054190 A268681 A101013 * A290997 A052103 A072168
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 06 2003
STATUS
approved