A383953 a(0) = 4, a(n) = 2*a(n-1) + (-1)^n.
4, 7, 15, 29, 59, 117, 235, 469, 939, 1877, 3755, 7509, 15019, 30037, 60075, 120149, 240299, 480597, 961195, 1922389, 3844779, 7689557, 15379115, 30758229, 61516459, 123032917, 246065835, 492131669, 984263339, 1968526677, 3937053355, 7874106709, 15748213419, 31496426837
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,2).
Programs
-
Mathematica
a[n_] := (11*2^n + (-1)^n)/3; Array[a, 34, 0] (* Amiram Eldar, Aug 20 2025 *)