OFFSET
0,2
COMMENTS
Binomial transform of A084181.
From Peter Bala, Dec 26 2012: (Start)
Let F(x) = product {n >= 0} (1 - x^(3*n+1))/(1 - x^(3*n+2)). This sequence is the simple continued fraction expansion of the real number F(-1/3) = 1.47627 73316 74531 44215 ... = 1 + 1/(2 + 1/(10 + 1/(26 + 1/(82 + ...)))). See A111317.
(End)
LINKS
FORMULA
a(n) = 3^n + (-1)^n - 0^n.
G.f.: (1+3*x^2)/((1+x)*(1-3*x)).
E.g.f.: exp(3*x)-exp(0)+exp(-x).
a(n) = 2 * A046717(n) for n >= 1.
MATHEMATICA
LinearRecurrence[{2, 3}, {1, 2, 10}, 30] (* Harvey P. Dale, Apr 27 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 19 2003
STATUS
approved