cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A231004 Number of years after which it is not possible to have the same calendar for the entire year, in the Julian calendar.

This page as a plain text file.
%I A231004 #8 Jun 04 2024 10:51:55
%S A231004 1,2,3,4,5,7,8,9,10,12,13,14,15,16,18,19,20,21,23,24,25,26,27,29,30,
%T A231004 31,32,33,35,36,37,38,40,41,42,43,44,46,47,48,49,51,52,53,54,55,57,58,
%U A231004 59,60,61,63,64,65,66,68,69,70,71,72,74,75,76,77,79,80,81,82,83,85,86,87
%N A231004 Number of years after which it is not possible to have the same calendar for the entire year, in the Julian calendar.
%C A231004 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.
%C A231004 Assuming this fact, this sequence is periodic with a period of 28.
%C A231004 This is the complement of A231001.
%H A231004 Time And Date, <a href="http://www.timeanddate.com/calendar/repeating.html">Repeating Calendar</a>
%H A231004 Time And Date, <a href="http://www.timeanddate.com/calendar/julian-calendar.html">Julian Calendar</a>
%H A231004 <a href="/index/Rec#order_24">Index entries for linear recurrences with constant coefficients</a>, 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).
%F A231004 From _Chai Wah Wu_, Jun 04 2024: (Start)
%F A231004 a(n) = a(n-1) + a(n-23) - a(n-24) for n > 24.
%F A231004 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)
%o A231004 (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", ")))
%Y A231004 Cf. A230995-A231014.
%Y A231004 Cf. A230999 (Gregorian calendar).
%K A231004 nonn,easy
%O A231004 1,2
%A A231004 _Aswini Vaidyanathan_, Nov 02 2013