Let $A$ be the set of days in week, $A = \{Mon,Tue,Wed,Thu,Fri,Sat,Sun\}$, and $B = \{1,2,\dots,31\}$. For each date, we have a pair $(x,y)$, $x \in A$ and $y \in B$. Then we will have an infinite sequence of these pairs. For example, starting from today (Friday, April 27, 2012), we have $(Fri,27), (Sat,28), (Sun,29),\dots$ and so on. Now my questions are:
- What is the smallest period $T$ after which the sequence repeats? I know that in every 400 years there are 146097 days, which is a multiple of 7, therefore 146097 is a period. But does there exist a smaller period?
- During each period $T$, what is (are) the pair (pairs) that appear the most (i.e. highest frequency)? What is the frequency of $(Fri,13)$?
Edit: we are using the Gregorian calendar, with different lengths of months, leap years, etc.