A167784 a(n) = 2^n - (1 - (-1)^n)*3^((n-1)/2).
1, 0, 4, 2, 16, 14, 64, 74, 256, 350, 1024, 1562, 4096, 6734, 16384, 28394, 65536, 117950, 262144, 484922, 1048576, 1979054, 4194304, 8034314, 16777216, 32491550, 67108864, 131029082, 268435456, 527304974, 1073741824, 2118785834, 4294967296, 8503841150
Offset: 0
Links
- Robert Israel, Table of n, a(n) for n = 0..3318
- Index entries for linear recurrences with constant coefficients, signature (2,3,-6).
Crossrefs
Cf. A154383.
Programs
-
Maple
seq(2^n - (1 - (-1)^n)*3^((n-1)/2), n=0..100); # Robert Israel, Apr 11 2019
-
Mathematica
LinearRecurrence[{2, 3, -6}, {1, 0, 4}, 40] (* Harvey P. Dale, Nov 29 2011 *)
Formula
Extensions
Edited and extended by R. J. Mathar, Feb 27 2010
Incorrect b-file corrected by Robert Israel, Apr 11 2019
Comments