OFFSET
1,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
From Zak Seidov, Apr 22 2009: (Start)
a(n) = a(n-2) + 3.
a(n) = (1/4)*(6*n + 9 - 13*(-1)^n). (End)
From R. J. Mathar, Apr 22 2009: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3).
G.f.: x*(7-5*x+x^2)/((1+x)*(1-x)^2). (End)
E.g.f.: (1/2)*( (11+3*x)*sinh(x) - (2-3*x)*cosh(x) + 2). - G. C. Greubel, Dec 02 2025
MATHEMATICA
LinearRecurrence[{1, 1, -1}, {7, 2, 10}, 80] (* Harvey P. Dale, Jan 16 2015 *)
PROG
(Magma)
A147677:= func< n | (3*n-2 +13*(n mod 2))/2 >;
[A147677(n): n in [1..80]]; // G. C. Greubel, Dec 02 2025
(SageMath)
def A147677(n): return ( 3*n-2 + 13*(n%2) )//2
print([A147677(n) for n in range(1, 81)]) # G. C. Greubel, Dec 02 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 21 2009
EXTENSIONS
More terms from Zak Seidov and R. J. Mathar, Apr 22 2009
STATUS
approved
