OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Stoehr Sequence.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 15*n-59 for n>4. a(n) = 2*a(n-1)-a(n-2) for n>6. G.f.: x*(7*x^5+4*x^4+2*x^3+x^2+1)/(x-1)^2. - Colin Barker, Sep 19 2012
MATHEMATICA
Join[{1, 2, 4, 8}, Range[16, 3001, 15]] (* Vladimir Joseph Stephan Orlovsky, Jan 27 2012 *)
LinearRecurrence[{2, -1}, {1, 2, 4, 8, 16, 31}, 60] (* Harvey P. Dale, Dec 25 2016 *)
PROG
(PARI) a(n)=if(n>4, 15*n-59, 2^(n-1)) \\ Charles R Greathouse IV, Jun 20 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved