OFFSET
1,2
LINKS
FORMULA
From Chai Wah Wu, Jul 24 2016: (Start)
a(n) = a(n-1) + a(n-3) - a(n-4) for n > 4.
G.f.: x*(5*x^3 + 4*x^2 + 2*x + 1)/(x^4 - x^3 - x + 1). (End)
a(n) = 4*n - (13 + 2*A131713(n))/3. - R. J. Mathar, Jun 22 2020
MATHEMATICA
LinearRecurrence[{1, 0, 1, -1}, {1, 3, 7, 13}, 60] (* Harvey P. Dale, Oct 19 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jun 19 2000
STATUS
approved