A027556 Unbalanced strings of length n.
0, 0, 0, 2, 6, 18, 42, 98, 210, 450, 930, 1922, 3906, 7938, 16002, 32258, 64770, 130050, 260610, 522242, 1045506, 2093058, 4188162, 8380418, 16764930, 33538050, 67084290, 134184962, 268386306, 536805378, 1073643522
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (3,0,-6,4).
Formula
a(n) = 2^n - A027383(n).
G.f.: 2*x^2/((1-x)*(1-2*x)(1-2*x^2)).
Comments