I ask for help.
I would like to resolve the following question:
Let $A$ be the set of natural numbers greater than 1582.
If, for every $Y\in A$ , the years $Y$ and $Y + n$ (of the actual calendar, the Gregorian) have the same calendar, then $n = 4k$, where $k$ is any positive integer.
Note:
Actually, what I want to prove is the following: the shortest period of the Gregorian calendar is 400 years.
I see different interpretations of your question:
Yes, $n=400$ is the smallest such $n$ and every such $n$ is a multiple of $400$.
On the other hand, $n=28$ works for all years between $1901$ and $2099$ because every fourth year after $1904$ is a leap year.
No, $2007$ and $2018$ are the same and their difference is $11$.
The difference between years of the same type follows a complicated pattern of $5,6,11,28$, depending on the starting year.