MathDB
KJMO 2000 P2 Counting Calendars (again!)

Source: KJMO 2000

June 29, 2024
combinatoricsKJMO

Problem Statement

Along consecutive seven days, from Sunday to Saturday, let us call the days belonging to the same month a MB. For example, if the last day of a month is Sunday, the last MB of that month consists of the last day of that month. If a year is from January first to December 3131, find the maximum and minimum values of MB in one year.