1. Standard Leap Year (e.g. 2024 or 2028)
Divisible by 4
\(2024 \div 4 = 506\) (remainder 0). \(2024 \div 100 \neq 0\). Since it divides by 4 and is not a century year, it is a leap year with 366 days.
2024 mod 4 == 0 && 2024 mod 100 != 0 → LEAP YEAR
2. Standard Common Year (e.g. 2026)
Non-Divisible
\(2026 \div 4 = 506.5\) (remainder 2). Because it fails the primary test of divisibility by 4, it is a common 365-day year.
2026 mod 4 != 0 → COMMON YEAR (365 Days)
3. The 400-Year Override (The Year 2000)
Century Override
2000 divides by 100, which usually disqualifies a year. However, \(2000 \div 400 = 5\) (remainder 0), so rule 3 overrides rule 2, making 2000 a leap year.
2000 mod 400 == 0 → LEAP YEAR (400-Year Rule)
4. Century Exception (The Year 1900 & 2100)
Century Disqualified
1900 and 2100 divide by 4 and by 100, but \(2100 \div 400 = 5.25\). Because they fail the 400-year test, they are common 365-day years.
2100 mod 100 == 0 && 2100 mod 400 != 0 → COMMON YEAR