login
A166027
a(n) = 6*a(n-2) for n > 2; a(1) = 4, a(2) = 1.
1
4, 1, 24, 6, 144, 36, 864, 216, 5184, 1296, 31104, 7776, 186624, 46656, 1119744, 279936, 6718464, 1679616, 40310784, 10077696, 241864704, 60466176, 1451188224, 362797056, 8707129344, 2176782336, 52242776064, 13060694016, 313456656384
OFFSET
1,1
COMMENTS
Interleaving of 4*A000400 and A000400.
FORMULA
a(n) = 6^(1/4*(2*n+3+(-1)^n))*(25-23*(-1)^n)/72.
G.f.: x*(4+x)/(1-6*x^2).
MATHEMATICA
Join[{4, 1, 24}, LinearRecurrence[{0, 6}, {6, 144}, 25]] (* G. C. Greubel, Apr 21 2016 *)
PROG
(Magma) [ n le 2 select 7-3*n else 6*Self(n-2): n in [1..29] ];
CROSSREFS
Cf. A000400 (powers of 6), A166023.
Sequence in context: A249268 A057869 A337204 * A158978 A128417 A257532
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Oct 04 2009
STATUS
approved