OFFSET
1,2
COMMENTS
In the Julian calendar, a year is a leap year if and only if it is a multiple of 4 and all century years are leap years.
Assuming this fact, this sequence is periodic with a period of 28.
This is the complement of A231001.
LINKS
Time And Date, Repeating Calendar
Time And Date, Julian Calendar
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1).
FORMULA
From Chai Wah Wu, Jun 04 2024: (Start)
a(n) = a(n-1) + a(n-23) - a(n-24) for n > 24.
G.f.: x*(x^23 + x^22 + x^21 + x^20 + x^19 + 2*x^18 + x^17 + x^16 + x^15 + 2*x^14 + x^13 + x^12 + x^11 + x^10 + 2*x^9 + x^8 + x^7 + x^6 + 2*x^5 + x^4 + x^3 + x^2 + x + 1)/(x^24 - x^23 - x + 1). (End)
PROG
(PARI) for(i=0, 420, j=0; for(y=0, 420, if(((5*(y\4)+(y%4))%7)==((5*((y+i)\4)+((y+i)%4))%7)&&((5*(y\4)+(y%4)-!(y%4))%7)==((5*((y+i)\4)+((y+i)%4)-!((y+i)%4))%7), j=1)); if(j==0, print1(i", ")))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Aswini Vaidyanathan, Nov 02 2013
STATUS
approved