[Math] How many years later the calendar of 2016 can be reused

algebra-precalculuscalendar-computationscombinatorics

How many years later the calendar of 2016 can be reused?

I was asked this question in an exam. I want to explain the term 'reuse' . If we ignore the holidays and our only purpose is to check the date of a particular day , then only we can reuse a past year calendar.

My attempt:

I have divided years in two parts . One part consists of January and February Months and other part will contain the rest of the months.

Any date between the 1st January to the 28th February of 2017 will occur two days later of that of 2016. This date of 2018 will occur 3 days later of that of 2016.
Thus we get the same date of 2020 will occur 5 days later of that of 2016.

Any date between the 1st March to the 31th December of 2017 will occur 1 day later of that of 2016. This date of 2018 will occur 2 days later of that of 2016.This date of 2019 will occur 3 days later of that of 2016. This date of 2020 will occur 5 days later of that of 2016.

So after 4 years any date of 2020 will occur on 5 days later of that of 2016. So after 28 years in 2044 for the first time we will get to use the calendar of 2016. So we have to wait at least 28 years to reuse the calendar of 2016.

Have I gone wrong anywhere? Can anyone please check my attempt?

Best Answer

Yes, you are right (temporarily).

As you noted, leap years have a different shape from others. So if you start with a leap year calendar, the next leap year calendar will come 4 years later.

The calendar for each leap year is $4+1=5$ days “ahead” of the previous one, so each step from one leap year to the next takes you 5 steps forward. Since 5 and 7 are relatively prime, you have to take seven 5-step jumps before you get back to the original calendar. And seven jumps of 4 years make 28 years, so you are right.

Enjoy your triumph while you can, because 2100 is not a leap year and all your calculations will fail. One major software package (was it Lotus 1-2-3?) thought that 1900 was a leap year, which it isn’t, and consequently had as its “zero” of date numbers a day one day earlier than any sensible person would have put it. All later spreadsheet programs have to be compatible with that, so the strange “zero” (30 December 1899 instead of 31 December) will be built into every program from now until the human race becomes extinct.

Related Question