login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A230997 Number of years after which it is possible to have a date falling on same day of the week, but the entire year does not have the same calendar, in the Gregorian calendar. 2

%I #4 Nov 02 2013 23:38:21

%S 5,7,33,35,61,63,89,91,117,131,145,159,173,187,213,227,241,255,269,

%T 283,309,311,337,339,365,367,393,395,405,407,433,435,461,463,489,491,

%U 517,531,545,559,573,587,613,627,641,655,669,683,709,711,737,739,765,767,793,795

%N Number of years after which it is possible to have a date falling on same day of the week, but the entire year does not have the same calendar, in the Gregorian calendar.

%C In the Gregorian calendar, a non-century year is a leap year if and only if it is a multiple of 4 and a century year is a leap year if and only if it is a multiple of 400.

%C Assuming this fact, this sequence is periodic with a period of 400.

%C These are the terms of A230995 not in A230996.

%H Time And Date, <a href="http://www.timeanddate.com/calendar/repeating.html">Repeating Calendar</a>

%H Time And Date, <a href="http://www.timeanddate.com/calendar/gregorian-calendar.html">Gregorian Calendar</a>

%e 5 belongs to this sequence because January 1, 2012 falls on same day as January 1, 2017 but the calendar is not completely the same for both the years. In fact, a difference of 5 years can never produce the same calendar for the entire year.

%e 7 belongs to this sequence because January 1, 2097 falls on same day as January 1, 2104 but the calendar is not completely the same for both the years. In fact, a difference of 7 years can never produce the same calendar for the entire year.

%o (PARI) for(i=0,400,j=0;for(y=0,400,if(((5*(y\4)+(y%4)-(y\100)+(y\400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400))%7),j=1;break));for(y=0,400,if(((5*(y\4)+(y%4)-(y\100)+(y\400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400))%7)&&((5*(y\4)+(y%4)-(y\100)+(y\400)-!(y%4)+!(y%100)-!(y%400))%7)==((5*((y+i)\4)+((y+i)%4)-((y+i)\100)+((y+i)\400)-!((y+i)%4)+!((y+i)%100)-!((y+i)%400))%7),j=2;break));if(j==1,print1(i", ")))

%Y Cf. A230995-A231014.

%Y Cf. A231002 (Julian calendar).

%K nonn,easy

%O 1,1

%A _Aswini Vaidyanathan_, Nov 02 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 09:04 EDT 2024. Contains 371240 sequences. (Running on oeis4.)