Which years share the 2026 calendar?
The year 2026 begins on a Thursday and has 365 days.
Which was the most recent earlier year with an identical calendar (same weekday for 1 January, same number of days), and which is the next later one? Explain the arithmetic.
Show a hint
Each ordinary year shifts 1 January forward by one weekday; each leap year by two. You need a total shift of a multiple of 7, and the target year must also be an ordinary year.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
How often does a whole calendar repeat exactly?What day of the week was 1 January 2000?Is your birthday on the same weekday next year?Born on 29 February, how many birthdays by age 40?One hundred days after a Monday
All questions →