## Calendar maths tells you a day of a date with another day and date given

Learn all the Calendar maths rules to find the day on a given date using **odd days concept** *when the day on a second date is given* and more.

Test yourself on **calendar maths exercise** with answers.

### Odd days technique in Calendar maths

Odd days technique is an ingenious way to **squeeze the whole period** between two dates **into a single number ranging from 0 to 6** and this *represents the gap in weekdays between the two dates.*

This technique is *based on Euclid's division lemma*.

Essentially **it drops all completed weeks** in a period and **gets the remainder** by dividing a number of days spanning a period of month, year or a century by 7. This **remainder is the gap in weekdays ranging from 0 to 6 between the two dates,** making it very easy to **find the weekday of the later date.**

To speed up the process,

Instead of time-consuming calculation of total number of days and divide it by 7 to get the remainder, it is quickly obtained just by adding odd day for months, years or centuries step by step doing modulo 7 operation on the result of addition at each step.

*This simulates finding the remainder by dividing the total number of days by 7.*

In this session we will,

- Review the Calendar units and basic properties of the calendar in general use today,
- Define and explain the concept of
**Odd days**, and, - Show you
**how to solve calendar problems**using**odd days concept.**

We will use here the calendar that is in general use, the calendar that starts with 1 AD and says, this year is 2018 AD.

### Calendar units

**Day:** The smallest interval or unit in a calendar is a day. *The link with a clock and calendar is in the fact that 24 hours make a day.*

**Week:** Seven days make a week, the next larger period of time. Weekdays are, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday **in sequence** that repeats. These names are easy to remember compared to numbers.

**Month:** The next larger interval or unit in a calendar is a month and finally 12 months make a year. Months are, January, February, March, April, May, June, July, August, September, October, November and December **in sequence** and repeating over years.

**General Concept:** No fixed number of weeks or days make a month or year, **though generally,** if nothing else is specified, we take,

- a month has 4 weeks
- a month has 30 days
- a year has 52 weeks
- a year has 365 days

**Printed Calendars** that we see are yearly calendars, but actually,

A calendar is a series of years starting in the past at some defined point of zero and proceeding into the future.

We divide continuing time into years for convenience of leading our lives.

### Specific properties of Calendar in Calendar maths

#### Properties of a year

- There are two kinds of years:
**Ordinary year**and**Leap year**. - An ordinary year has 365 days and a leap year has 366 days, one day extra. This extra day appears in February which in a leap year has 29 days instead of 28.

#### Leap year rule

A year to be a leap year, it must satisfy two conditions.

1. It must be divisible by 4, such as 2016, 5324 and so on. By this rule every century year should be a leap year.

2. But for a century year to be a leap year, there is a

second rule, a century year must be divisible by 400 to be a leap year. 1600, 2000, 2400 are leap years but 1900, 2100, 2200 are not.

### Working with weekdays and dates: Odd days in Calendar maths

Most times we work with weekdays and the dates. **To go forward or backward in terms of number of days, months or years** and still be able to know the weekday and date, a special concept of **odd days** has been created.

Number of odd days in a given number of days is the remainder when dividing the period in weeks, that is, dividing by 7.

For example, January always has 31 days, so its number of odd days is 3 which is the remainder after dividing 31 by 7.

#### Odd days in a year

An

ordinary yearhas 52 weeks and1 odd day, while aleap year has 2 odd daysas it has 1 day extra in February.

That’s why, the same date after one year is the next day of the week if it is an ordinary year.

14-11-2014 was a Friday, so 14-11-2015 must have been a Saturday.

#### Odd days in a century

First century starts with year 01 and ended with year 100. Similarly, 21st century started with 1st January, year 2001 and will end on 31st December, year 2100. The year next, year 2101 will usher in a new 22nd century.

In an ordinary century starting from year 01, there will be 24 leap years and 76 ordinary years.

The **24 numbers of leap years** will start with year 04 and end with year 96. This is because the ending year of the century, say, **2100 won't be a leap year** as it is not divisible by 400.

So total **number of odd days** in an **ordinary century** is,

$24\times{2}+76=124$.

Dividing by 7 again, the remainder odd days in an ordinary century is, $(124-119)=5$. Thus we have the fixed rule,

In an

ordinary century, resultantodd days will be 5.

In a century with century year as a leap year, say in 2400 which is divisible by 400, there will be one odd day extra, **that is, 6**. So the fixed rule for a century for which end year is divisible by 400 is,

For a

leap year century, number ofodd days will be 6.

#### Odd days in 400 years

This gives us the measure of number of odd days *in a larger span of 400 years as*, **remainder of dividing (5+5+5+6)=21 by 7 giving 0.** Thus we have the fixed rule,

For

400 yearsnumber of resultantodd days is 0.

#### The start day of a calendar we generally use

There must be a start days of the calendar we use. It is defined as,

1st day of 1 AD is a Monday, and so

0th day is a Sunday.

*All other weekdays follow from this definition.*

**Odd days in 12 months in a year**

An year has 12 months, each with a fixed number of days and and so fixed number of odd days. The following is a month-wise chart of number of odd days,

#### Modulo 7 operation

Modulo operation is part of extended arithmetic. It simply is the remainder after dividing an integer by a number, in our case by 7.

For example,

$\text{modulo 7}(5+5+4+3)=\text{modulo 7}(17)=3$, the remainder after dividing 17 by 7.

In odd day accumulation over months of a year, or years of a century, after we add up the number odd days, we divide the sum by 7 and get the remainder as **number of odd days in the whole period**.

In this way, instead of time-consuming calculation of total number of days and divide it by 7 to get the remainder, it is quickly obtained just by adding odd day for months, years or centuries step by step doing modulo 7 operation on the result of addition at each step.

*This simulates finding the remainder by dividing the total number of days by 7 following Euclid's division lemma.*

Now we will consolidate these concepts by solving a few problem examples on calendar math.

### Examples of calendar maths questions

#### Calendar maths question 1

If it is a Monday on 1st October 2012, what day will it be on 21st December, 2013?

#### Calendar maths question solution 1

Till 1st October 2013 it is intervening 1 ordinary year with 365 days and 1 odd day. Rest number of days up to 21st December is 81 and odd days 4.

Total odd days = 4 + 1 = 5.

So the weekday on 21st December 2013 will be 5 days after Monday which is a **Saturday**.

#### Calendar maths question example 2

If it is a Monday on 1st October 2012, what day will it be on 21st March, 2411?

#### Calendar maths question solution 2

Given a weekday and date, finding out a future or past weekday when date is given requires finding out **number of odd days in the number of intervening days**.

**Number of odd days in 2012:**

Total odd days, (30+30+31)=91. So **odd days in 2012 is 0** (as 7 divides 91 fully with 0 remainder).

**Number of odd days in 2013-2100:**

88 years left have 21 leap years each with 2 odd days and 67 ordinary years each with 1 odd day. So total odd days is,

$21\times{2}+67=109$, dividing by 7 gives **remainder odd digits as 4**.

Note that year **2100 is not a leap year** (year 400, 800, 1200, 1600, 2000, 2400, and so on are leap years).

**Number of odd days in 22nd century, 23rd century and 24th century:**

Each ordinary century has 24 leap years and 76 ordinary years, whereas in a century with century year as a leap year, we get 25 leap years and 75 ordinary years. So in an* ordinary century we have the number of odd days* as,

$\text{Number of odd days in an ordinary century}$

$= \text{modulo 7} (76\times{1} + 24 \times{2}) = \text{modulo 7} (124) = 5$

If the **century is a leap year century,** its number of odd days turns to 6.

Here we have three intervening centuries 22nd, 23rd and 24th, *last being a leap year century*.

So number of odd days in these three centuries is,

$\text{modulo 7}(5 + 5 + 6) = 2$.

**Number of odd days in first 10 years of 25th century:**

In 25th century in the first 10 years the number of odd days will be,

$\text{modulo 7}(8\times{1} + 2 \times{2}) = 5$, 2404 and 2408 will be leap years.

**Number of odd days in 25th century up to 21st March, 2411:**

Lastly in 2411 up to 21st March 2411, we have (31+28+21)=80 days and so **3 odd days**.

**Total number of odd days:**

Finally, Total intervening odd number of days is,

$\text{modulo 7} (0+4 + 2 + 5 + 3) = 0$.

Thus 21st March 2411 would also be a **Monday**.

#### Calendar maths question 3

What was the weekday on 20 June 1354?

#### Calendar maths question Solution 3

The usual calendar starts with 1st January, 1 AD as a Monday, that is, **0th day of January, 1 AD on a Sunday.**

This mechanism enables you to get intervening odd days up to say, 31st December 100 AD as exactly 5 (full 100 years difference as starting point is 0) and so the weekday will be 5 days after Sunday, that is, Friday.

Thus, in the first **1200 years number of odd days is 0** as each 400 years number of odd days is 0 (5+5+5+6=21=>0).

In **13th century odd days is 5**.

In **first 53 years of 14th century**, 13 leap years and 40 ordinary years contribute to odd days as,

$\text{modulo 7}(13 × 2 + 40) = \text{modulo 7} (66) = 3$.

**In 1354** (a normal year) up to 20th June, number of days is = (31 + 28 + 31 + 30 + 31 + 20) = 171 giving a **number of odd days 3**.

Thus,

$\text{Total odd days} = \text{modulo 7} (0 + 5 + 3 + 3) = \text{modulo 7}(11) = 4$.

So the required weekday is 4 days after Sunday, that is, **Thursday**.

### Calendar maths exercise problems

**Q1.** The calendar for the year 2007 will be the same for the year,

- 2014
- 2016
- 2017
- 2018

**Q2.** If today 26th January, 2021 is Tuesday, what will be the day 351 days from now?

- Tuesday
- Monday
- Wednesday
- Thursday

**Q3.** If Feb 12th, 1986 falls on Wednesday then Jan 1st, 3086 falls on which day?

- Wednesday
- Friday
- Thursday
- Tuesday

**Q4.** On what dates of July, 2004 did Monday fall?

- 6th, 20th, 27st, 13th
- 12th, 7th, 19th, 28th
- 3rd, 10th, 24th, 17th
- 5th, 12th, 19th, 26th

**Q5.** It was Sunday on Jan 1, 2006. What was the day of the week Jan 1, 2010?

- Friday
- Saturday
- Monday
- Wednesday

**Q6.** The second day of a month is Sunday, What will be the last day of the next month which has 31 days?

- Friday
- Saturday
- Sunday
- Monday

**Q7.** The last day of a century cannot be a

- Sunday
- Monday
- Thursday
- Wednesday

**Q8.** If 3rd February, 1999 was Wednesday then what day was 25th January, 2001?

- Thursday
- Sunday
- Wednesday
- Tuesday

**Q9.** What will be the day on 26th January four years later if today is Tuesday, 26th January, 2021?

- Friday
- Sunday
- Monday
- Wednesday

**10.** Any date in March of a year and the day of the week on corresponding date in November that year will be.

- Same day
- Next to next day
- Next day
- Previous day

### Answers to the Calendar maths exercise problems

**Q1. Answer:** Option d: 2018.

**Q2. Answer:** Option c: Wednesday.

**Q3. Answer:** Option b: Friday.

**Q4. Answer:** Option d: 5th, 12th, 19th, 26th.

**Q5. Answer:** Option a. Friday.

**Q6. Answer:** Option d. Monday.

**Q7. Answer:** Option c. Thursday.

**Q8. Answer:** Option a. Thursday.

**Q9. Answer:** Option b. Sunday.

**Q10. Answer:** Option a. Same day.