OFFSET
1,2
COMMENTS
This sequence gives a linearly increasing triangle shaped form on plotting.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1).
FORMULA
G.f.: -x*(-1-3*x-6*x^2+7*x^3)/((1+x+x^2)*(x-1)^2). [Oct 14 2009]
a(n) = n+3 + (-1)^n * A130806(n+1). [Oct 14 2009]
a(n) = (24*n + 75 - 18*cos(2*(n+1)*Pi/3) + 9*cos(2*Pi*sin(2*n*Pi/3)/sqrt(3)) + 50*sqrt(3)*sin(2*(n+1)*Pi/3))/24. - Wesley Ivan Hurt, Oct 05 2017
MATHEMATICA
M = {{0, 1, 0}, {0, 0, 1}, {1, 0, 0}} v[1] = {1, 4, 10} v[n_] := v[n] = M.v[n - 1] + {0, 0, 3} a = Table[v[n][[1]], {n, 1, 50}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Sep 07 2006
EXTENSIONS
Definition replaced by recurrence - The Assoc. Editors of the OEIS, Oct 14 2009
STATUS
approved