16. Finding the Day of the Week, given its date
The seventh printing of the book Mathematics for Practical Use by Kaj L.
Neilsen, Barnes and Nobles,( c) 1962, on page includes the following
formula
to calculate a whole number N.
In this formula,
- d between 1 and 31 is the day of the month,
- m between 3 and 14 is the number of the month in the year, with
January and February being included as the 13th and 14th months of the
previous year, and
- Y is the number of the year in the Western Calendar.
and the square brackets in this formula take the greatest integer or
whole number part of a number. For example,
[141.85] = 141 - for unsigned or positive numbers drop the
decimal or fractional part if present.
[34¼] = 34 - ditto
[3.1416] = 3 - ditto
[1453] = 1453 - there is nothing to drop.
|
Optional Reading: The greatest integer operation can also be
applied to negative numbers. Here are examples that is not needed
below and so is may be skipped.
[-33] = - 33
[-10.5] = [-11+ .5] -11
[-3.1416] = [- 4 + (1-.1416)] = -4
[-5.2] = [-6 +0.8] = 6
Every number, negative and positive, may be written as a integer (a
signed whole number) plus a nonnegative number part > 0
and < 1. The integer is called and actually is the greatest
integer part of the number.
|
Neilsen's Book on page 207 says that the remainder on the division by N
by 7 gives the day of week, and then shows the day of the week for the
date January 1st, 1961 is a Sunday. There-in lies the reason for
calculating N.
We will consider a few further examples and explain the use and parts of
the formula in greater detail.
Now the remainder on division of the whole number N by 7 will be a
number in the set
{0, 1, 2, 3, 4, 5, 6}
with the day N being a Sunday if the remainder is 1.
|
Day
|
Remainder
|
|
Saturday
|
0
|
|
Sunday
|
1
|
|
Monday
|
2
|
|
Tuesday
|
3
|
|
Wednesday
|
4
|
|
Thursday
|
5
|
|
Friday
|
6
|
Example: Use the formula to find the day of the week is July 9,
2010?
Solution: We will use
d = 9 is the day of the month,
m = 7 since July is the seventh month of the year, and
Y = 2010 is the number of the year.
to calculate
Now with the aid of my calculator:
|
d
|
|
=
|
9
|
|
2m
|
|
=
|
14
|
|
[
|
3(m+1)
5
|
]
|
=
|
|
|
Y
|
|
=
|
2010
|
|
[
|
Y
4
|
]
|
=
|
|
|
-[
|
Y
100
|
]
|
=
|
|
|
[
|
Y
400
|
]
|
=
|
|
Therefore
= 9 + 14 + 4 + 2010 +502 - 20 +5 + 2
= 2526
Now my calculator gives N ÷ 7 = 360.857 with 360 being the greatest
integer part. Now The remainder on division of this N by 7 is
N - 360 × 7 = 2526 - 2520 = 6
So from the above table, July 9th, 2010 (today's date as I write) should
be a Friday, and it is.
Exercises:
- Use the above formula for N to find the day of week of January 15,
2012. Hint: d = 15, m =13 and Y =2012-1 because January and
February are taken to be part of the previous year. .
- Use the above formula for N to find the day of week of February 29,
2016. Hint: d = 29, m =14 and Y =2016-1 because January and
February are taken to be part of the previous year. .
- Use the above formula for N to find the day of week of March 10,
2025. Hint: d= 10, m =3 and Y =2025.
- Calculate the day of the week on which you were born.
- Calculate the day of the week from today's date.
Going Further
The same results as above would follow from calculating
in place of
Later, if you obtain and algebraic understanding of calculations
with remainders, you can explain why. For that note the remainder on
division of 30 by 7 is 2. The remainder on division of 365 by 7 is
1.
In the present Occidental (Gregorian) calendar, in use since 1582 (??)
for several centuries, each year has 365 days, except for leap years
which have one extra day.
The term 365Y in M in principle counts the number of days since the
formal year Y = 0 in the current occidental calendar.
Now every four year in which Y is a multiple of 4 is a leap
year, except if Y is multiple of 100 but not 400. So the expression
counts the number of leap years since the formal Y = 0 in the current
calendar. This expression is also equal to the number extra days that
each leap year add since the formal year Y = 0. So the expression
counts the number of days from the formal year 0 in the current calendar
to the current year Y.
Going Further II
|
(I)
|
(II)
|
(III)
|
(IV)
|
(V)
|
(VI)
|
(VII)
|
(VIII)
|
|
month
|
days in month
|
Number of Day since last day of February to last day
of month m
|
m
|
q = m-3
|
30q
|
3(q+1)
5
|
|
|
March
|
31
|
30+1
|
3
|
0
|
0
|
0.6
|
0
|
|
April
|
30
|
60+1
|
4
|
1
|
30
|
1.2
|
30+1
|
|
May
|
31
|
90+2
|
5
|
2
|
60
|
1.8
|
60+1
|
|
June
|
30
|
120+2
|
6
|
3
|
90
|
2.4
|
90+2
|
|
July
|
31
|
150+3
|
7
|
4
|
120
|
3.0
|
120+2
|
|
August
|
31
|
180+4
|
8
|
5
|
150
|
3.6
|
150+3
|
|
September
|
30
|
210+4
|
9
|
6
|
180
|
4.2
|
180+4
|
|
October
|
31
|
240+5
|
10
|
7
|
210
|
4.8
|
210+4
|
|
November
|
30
|
270+6
|
11
|
8
|
240
|
5.4
|
240+5
|
|
December
|
31
|
300+6
|
12
|
9
|
270
|
6
|
270+6
|
|
January
|
31
|
330+7
|
13
|
10
|
300
|
6.6
|
300+6
|
|
February
|
28
|
360+5
|
14
|
11
|
330
|
7.2
|
330+7
|
|
(I)
|
|
|
|
|
|
|
|
By playing with part of the N formula, that is, through numerical
experimentation, I filled in the above table.
Column II lists the days in each month. Column III lists the number
of days to the end of the current month since the start of the previous
February. By counting from the 1st of March, the extra day in any leap
year, will become day 366 and be the last day numbered.
Column (IV) list the month number. Here January and February are taken
to be the 13th and 14th of the previous year to make the calculation
simpler. Numerical experimentation led to the following. Namely, if q =
m-3 then the column (VIII) expression
gives the values in Column (III), shifted vertically by one. The
foregoing yield the following.
Day d of month m in year Y (where 3 < m < 14) is
the
day after the last day of February in Year Y when q = m-3.
Examples
Let's us do a few examples to check the foregoing.
Counting the Days since the last day of February, 2000.
The formula
gives the number of days since the end of February in the formal year 0
the Gregorian Calendar
when
- d = the day of the currant month,
- q = m -3 where m = the number of the current month (3 < m < 14)
with January and February be counted as the 13th and 14th month of the
previous year, and
- Y = the current year for month m, with the convention that the
current year for January and February is the last calendar year.
Note in the foregoing, if we take Y to be the {current year - 2000} then
the above formula gives the number of days since Friday, February 29,
2000. That will provide smaller numbers.
Example: For Friday, July 9th, 2010,
- d = 9
- m = 7 and q = m - 3 = 4
- Y = 2010 -2000 = 10.
That gives the following number of days since the start of March,
2000:
= 9 + 4 (30) + [12/5] + 365 (10) + [10/4] - [10/100] + [10/400]
= 9 + 120 +[2.2]+ 3650 +[2.5] - 0 + 0
= 9 + 120 + 2 + 3650 + 2 (since square bracket indicate
greatest integer part)
= 3783
Extra: In the calculation of the number of days since March 29th,
2000, the remainder after the division of M+3 by 7 gives the day of the
week if we use the following table
|
Day
|
Remainder
|
|
Saturday
|
0
|
|
Sunday
|
1
|
|
Monday
|
2
|
|
Tuesday
|
3
|
|
Wednesday
|
4
|
|
Thursday
|
5
|
|
Friday
|
6
|
Here M+ 6 =3783 +3 = 3786 My calculator gives 3786 divided by 7 is
540.857 (approx). The greatest integer part of the latter is 529. So the
remainder = 3786 - 540 × 7 = 3786 - 2780 = 6.
That makes July 9th, 2010 a Friday (today at the time of writing). And
that is correct..
Question: How many calendar days are there in a project which
begins on July 9th, 2010 and if it ends on June 15th, 2011?
Solution:
For July 9th, 2010, the above calculation gives M = 3783.
For June 15th, 2011, we have
- d = 15
- m = 6 and q = m - 3 = 3
- Y = 2011 -2000 = 11
That gives the following number of days since the start of March, 2000:
= 15 + 30 × 3 + [12/5] + 365 (11) + [11/4] - [11/100] +
[11/400]
= 15 + 90 +[2.2]+ 4015 +[2 ¾] - 0 + 0
= 15 + 90 + 2 + 4015 + 2 (since square bracket indicate
greatest integer part)
= 4124
Now the number of calendar days in the project, including the start and
end dates, is
4124 - 3783 + 1 = 342
End Notes
The last formulas for M followed my playing with the formula for N in the
Neilsen's book. If I have made a mistake, I hope that some reader will
catch it and tell me. That being said, before or besides starting this
adventure, I should searched on the world wide web (or in a library) for
origins of formulas for counting days in the year. That might have
shortened the adventure above and provided a more scholarly approach.
The webpage http://www.convertunits.com/dates/
provides some background (briefly) and provides an online option to
calculate the number of days between two dates - excluding the end
date. It also gives the number of hours, minutes and seconds. For the
example above, that webpage gives 341 without the end date and 342
with.
To learn more, see search on number the days in the year or years
Search on
Bing, Search on
Google or another internet search engine.
|
Secondary
Mathematics for Ages 11+, A Practical Approach for home-tutoring or -schooling, or for schools & colleges
with local curriculum control. Study how to include site content - its skill development how-TOs and innovations
into present or future lesson plans - some reading required.
Road
Safety Messages and Questions: When and why should you face
traffic when walking along a road or cycle path? Is it a good
idea to hang limbs outside of cars etc? What gives more
protection in a crash: a car, motorbike or bicycle?
See too, the BBC-Belgium story Texting and
Driving - texting & the impossible test - the article links to a gruesome utube video on the subject
The Logic of Injustice:
How Texas sent
an innocent man to his death - The wrong Carlos. Some judgments are irreversible. Procescution: Where and when prosectors play to win rather than for
justice, guilt beyond a reasonable doubt goes unrespected due to prosecutors who putting winning
first, those innocence before the law may be convicted. Some procescutors offices in continuing to accuse after a pardon
due to reasonable doubt or innocent being shown, may sucessfully oppose compensaton for false convictions
by asserting a pardon individual is still under suspicion. Then the pardoned individual or the latter's estate
is not compensation for years or decade
of improper or false imprisonment, or for execution. Site chapters on Logic
and some in Pattern
Based Reason may slowly lead to greater precision in reading, applying and
writing laws.
May 2012, Composition Starting:
Pre-School and Primary Mathematics - Quantitative Skills, An
Intellectual View, Feedback Welcome:
The 8 Most Popular Site Inlinks
Parent Center: Help your child or teen
learn:
Parent-friendly
Work Booklets for ages 3+ to 13 Use these or others to check
or build skills. Other booklets are available but these booklets
allow parents unsure of themselves in mathematics to help their
children. The selection acquired in Canada is published in the
USA. So it has a US orientation. In retrospect, the selection
shows parents what to check with the booklets or by other ways,
the choice is theirs. But in retrospect, the selection does not
cover integral and fractions liquid weights and measures - ask
the publishers to correct that! For ages 9 to 12 say, parents may
compensate by showing boys and girls how to use weights or mass,
and further measures in food preparation. Beyond that children
may be shown how to measure and calculate angles, lengths and
areas [proportional amounts too] directly or by using maps and
plans drawns to scale. Learning how to gather and measure all the
ingredients, pots and pans for a dish or a meal, along with
cleaning up sets the stage for like activities or experiments in
science courses, and in developing organizational skills,
gives boys and girls a head start. Good luck. At the other
extreme, more comprehensive than light, if your motto is
McCainian: drill, drill, drill then Toronto
mathematician and actor John Mighton's jump math organization has jump math
workbooks for at least grades 3 to 8 for at-home and in-school
use - training sessions for teachers available. Jump math has
been expanding to cover older students. Jump Math Samples: plus
Fractions for
Grades 3-4 & Grades 5-6 [Read] Free Resources grades 1 to 8
[unread - likely to be good]. and
Mathematics
Skills For Ages 3 to 14 - technical!
Skills with take
home value - A few ideas
Basic skills include
time-date-calendar Matters; money matters; map, plan and
scale diagram matters;counting, measuring and figuring;
decision making with logic and likelyhood; being careful and
being aware of the domino effect of mistakes; reading and
writing with precision.
Is your child able to add, subtract and multiply amounts
of money, work with fractions, work with clocks and calendars,
work with maps and plans, and measure length, weight-mass and
volume? Schools may promote your son or daughter without
providing basic skills in reading, writing and
arithmetic.
Arithmetic
and Number Theory Skills
Algebra
Starter Lessons
Geometry
- maps plans trigonometry vectors
More
Algebra
70
Calculus Starter Lessons
Calculus Lessons Elsewhere:
-
How to Ace Calculus: Street Wise Guide - Mostly
Text.
-
Flash
Video for Calculus Phobics
They cover basic topics in ways likely to complement your
notes, your textbooks and site material. When Goldilocks
trespassed in the house of the three bears, she found three bowls
of porridge, two not to her liking, and one just right. Different
bears have different tastes. As invited guest here and elsewhere,
if one or more explanations is not to liking, try another. It may
be better or just right.
Unsolicited Advice
Learning to do and high marks if it comes to easy is often
deceptive - light rather than deep. For that reason, students
with learning difficulties determined not to let it get in their
way may go deeper and farther than those with none. High marks,
if the come easy, may be deceptive - provide a too light and not
a deep mastery. That could have been your problem in secondary
school, one that leads to comprehension shock or difficulties in
calculus and more generally in the first year of college. Bon
Appetite.
|
|