OFFSET
0,2
COMMENTS
Row sums of A181654.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,4,0,-3).
FORMULA
G.f.: (1+2*x-x^3+x^4)/((1-x^2)*(1-3*x^2)).
a(2n-1) = A060816(n-1), a(2n) = A198643(n-1); n >= 1. a(n+1) = 2*a(n) if n is odd. - M. F. Hasler, Apr 06 2019
MATHEMATICA
CoefficientList[Series[(1+2x-x^3+x^4)/(1-4x^2+3x^4), {x, 0, 40}], x] (* or *) Join[{1}, LinearRecurrence[{0, 4, 0, -3}, {2, 4, 7, 14}, 40]] (* Harvey P. Dale, Jan 11 2012 *)
PROG
(PARI) A181655(n)=if(bitand(n, 1), 3^(n\2)*5\2, n, 3^(n\2-1)*5-1, 1) \\ M. F. Hasler, Apr 06 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Nov 03 2010
STATUS
approved