OFFSET
1,1
FORMULA
From Chai Wah Wu, Jan 27 2020: (Start)
See caveat in A033171 formula section.
a(n) = a(n-1) + a(n-4) - a(n-5) for n > 5.
G.f.: x*(365*x^3 + 365*x^2 + 366*x + 365)/(x^5 - x^4 - x + 1). (End)
MATHEMATICA
Accumulate[Table[If[LeapYearQ[{y, 1, 1}], 366, 365], {y, 2018, 2058}]] (* Harvey P. Dale, Aug 09 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
a(19) corrected by Chai Wah Wu, Jan 27 2020
STATUS
approved