OFFSET
0,2
COMMENTS
A row of the square array A219605.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,4,0,-3).
FORMULA
a(n) = a(n-1) + 3 if n odd.
a(n) = 3*a(n-1) if n even.
a(2n) = (11*3^n - 9)/2.
a(2n+1) = (11*3^n - 3)/2.
a(n) = 4*a(n-2) - 3*a(n-4) with n>3, a(0)=1, a(1)=4, a(2)=12, a(3)=15.
a(n) = A219605(3,n).
a(n) = Sum_{k=0..n} A220354(n,k) * 3^k.
a(n) = (11*3^floor(n/2)-3(-1)^n)/2 -3. - Bruno Berselli, Apr 27 2013
MAPLE
seq( (11*3^floor(n/2) -3*(2+(-1)^n))/2, n=0..40); # G. C. Greubel, Nov 12 2019
MATHEMATICA
Table[(11*3^Floor[n/2] -3*(2+(-1)^n))/2, {n, 0, 40}] (* G. C. Greubel, Nov 12 2019 *)
PROG
(PARI) vector(41, n, (11*3^((n-1)\2) -3*(2-(-1)^n))/2) \\ G. C. Greubel, Nov 12 2019
(Magma) [(11*3^Floor(n/2) -3*(2+(-1)^n))/2: n in [0..40]]; // G. C. Greubel, Nov 12 2019
(Sage) [(11*3^floor(n/2) -3*(2+(-1)^n))/2 for n in (0..40)] # G. C. Greubel, Nov 12 2019
(GAP) List([0..40], n-> (11*3^Int(n/2) -3*(2+(-1)^n))/2 ); # G. C. Greubel, Nov 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Apr 17 2013
STATUS
approved