OFFSET
1,2
COMMENTS
Or "such that the geometric mean of the first n terms is an integer." (Without the "different from its predecessor" requirement, the trivial sequence 1,4,2,2,2,2,2,... would have resulted.)
LINKS
Robert Israel, Table of n, a(n) for n = 1..2209
Index entries for linear recurrences with constant coefficients, signature (0, 10, 0, -16).
FORMULA
From Robert Israel, Nov 27 2016: (Start)
a(n) = 2^A014682(n-1).
G.f.: x*(1+4*x-8*x^2-8*x^3)/(1-10*x^2+16*x^4). (End)
MAPLE
seq(op([2^k, 2^(3*k+2)]), k=0..20); # Robert Israel, Nov 27 2016
MATHEMATICA
CoefficientList[Series[x (1 + 4 x - 8 x^2 - 8 x^3)/(1 - 10 x^2 + 16 x^4), {x, 0, 31}], x] (* Michael De Vlieger, Nov 24 2017 *)
LinearRecurrence[{0, 10, 0, -16}, {1, 4, 2, 32}, 40] (* Harvey P. Dale, Mar 20 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 19 2002
EXTENSIONS
More terms from Sam Alexander, Nov 15 2003
STATUS
approved