A164640 a(n) = 8*a(n-2) for n > 2; a(1) = 1, a(2) = 6.
1, 6, 8, 48, 64, 384, 512, 3072, 4096, 24576, 32768, 196608, 262144, 1572864, 2097152, 12582912, 16777216, 100663296, 134217728, 805306368, 1073741824, 6442450944, 8589934592, 51539607552, 68719476736, 412316860416
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..300
- Index entries for linear recurrences with constant coefficients, signature (0, 8).
Programs
-
Magma
[ n le 2 select 5*n-4 else 8*Self(n-2): n in [1..26] ];
-
Mathematica
LinearRecurrence[{0,8},{1,6},40] (* Harvey P. Dale, Nov 06 2013 *)
-
PARI
a(n)=(7-(-1)^n)*2^(1/4*(6*n-15+3*(-1)^n)) \\ Charles R Greathouse IV, Oct 07 2015
Formula
a(n) = (7-(-1)^n)*2^(1/4*(6*n -15+3*(-1)^n)).
G.f.: x*(1+6*x)/(1-8*x^2).
Extensions
G.f. corrected by Klaus Brockhaus, Sep 18 2009
Comments