Saturday, April 14, 2012

Use Modular Math to find the day of the week.

--------- #1459 - Modular Math to find the day of the week.
-
- A FACT in algebra is that the digits of any multiple of 9 must sum to a multiple of 9.
-
------------------------- 2 * 9 = 18 , ------------ 1 + 8 = 9
------------------------- 3 * 9 = 27 , ------------ 2 + 7 = 9
-
- Using this fact can result in many interesting behaviors in algebra which contains numbers that are multiples of 9 and the calendar which contains multiples of 7
-
------------------------ 1,234 = 1 * (1 + 999) + 2 * ( 1 + 99) + 3 * ( 1 + 9) + 4
-
------------------------ Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday repeat themselves every 7 days.
-
- This is called modular arithmetic or clock arithmetic in which numbers can be thought of as wrapping around in a circle. Because the days of the week wrap around with 7 the modular math can calculate any day of the week in history.
-
- To illustrate modular math. Pick any number?
-
------------------------------- 4
-
----------------------------Triple it = 4 * 3 = 12
-
--------------------------- Add 6 to the result = 6 + 12 = 18
-
-------------------------- Triple that result = 3 * 18 = 54
-
-------------------------- Add the digits in your answer = 5 + 4 = 9
-
- You will always get the number 9, Why?
-
- It is simple algebra: Pick any number?
-
------------------------------- x
-
----------------------------Triple it = 3 * x
-
--------------------------- Add 6 to the result = 3*x + 6
-
-------------------------- Triple that result = 3 * (3x + 6) = 9x + 18
-
-------------------------- This is 9 * (x + 2)
-
- By tripling any number twice you are guaranteed to get a multiple of 9.
-
- FACT: If a number s a multiple of 9 its digits will sum to a multiple of 9
-
- FACT: A number is divisible by 9 if and only if the sum of its digits is a multiple of 9.
-
- FACT: A number is divisible by 3 if and only its digits add to a multiple of 3.
-
- FACT: If you take any number and scramble its digits then subtract the original number for the scrambled number you will get a multiple of 9.
-
---------------------------- Take the number 1,234
-
------------------------------ Add up the digits and you get 10, 9 + 1 = one more than a multiple of 9
-
------------------------ 1,234 = 1 * 1000 + 2 * 100 + 3 * 10 + 4
-
------------------------- 1,234 = 1 * (1 + 999) + 2 * ( 1 + 99) + 3 * ( 1 +9) + 4
-
- All of these terms are multiples of 9 and you are left with 1 + 2 + 3 + 4 = 10
-
----------------------------- 10 = 9 + 1
-
---------------------------- Therefore 1,234 is 1 greater than a multiple of 9.
-
- OK, how does this modular math work with a calendar. A calendar works with a multiple of 7.
-
- We have to have a starting point. The year 1900 is zero, 0. The days of the week are:
-
-------------------- Sunday = 1
-------------------- Monday = 2
------------------- Tuesday = 3
------------------- Wednesday = 4
-------------------- Thursday = 5
--------------------- Friday = 6
--------------------- Saturday = 7 or 0
-
- Next we need the months of the year. This can be memorized as (12^2) + (5^2) + (6^ 2) + (12^2 +2) which is put in tabular form like this:
-
------January = 1 ------ April = 0 ------- July = 0 ------ October = 1
------February = 4 ------ May = 2 ------- August = 3 ---- November = 4
------March = 4 ------- June = 5 ----- September = 6 --- December = 6
-
- The code for the year starts with 1900 = 0, also 2007 = 0. OK smarty what day of the week was March 19, 1961?
-
------------------ 1961 = 1900 + 61
-
---------------- There are 15 leap years in 61 years, ( 4* 15 = 60)
-
- There are 365 days in a year so each year the day of the week advances one year. If your birthday is on Monday this year it will be on Tuesday next year. That is because as a multiple of 7, 7 * 54 = 364, 365 is one more shift is a day. Unless it is a leap year than 366 is 2 more shifts in days.
-
- Ok, back to March 19, 1961
-
- We had 15 leap years so we need to add 15 to the 61 , 15 + 61 = 76
-
- So 76 is the year code for 1961, but since we are working in multiples of 7 we simply this by working with 6 + (7*10) and just work with the code number 6 for 1961.
-
--------------- Now back to our table, March = 4
-
-------------- Year + month + day = 6 + 4 + 19 = 29
-
-------------- 29 = 1 + (7 * 4)
-
---------------- The number for the day of the week is 1 which is Sunday.
-
- March 19, 1961 was a Sunday. Check it out.
-
-How about Doug’s birthday May 7, 2012
-
------------------------ 2007 = 0
-
-------------------------2012 = 5 + 1 leap year
-
----------------------- May = 4
-
------------------------ Day = 7
-
----------------------- 6 + 4 + 7 = 15 = 1 + (7*2)
-
--------------- 1 is left after all the multiples of 7
-
----------------- 1 is a Monday.
-
- Doug’s birthday is Monday, Dave, better buy him a present. No charge for the math lesson. I had good teachers. Next year we will celebrate on a Tuesday. Take the number 1,618. Scramble the digits to 8,611. Now subtract the numbers 8,611 - 1,618 = 6,993. Add these digits. 6 + 9 + 9 + 3 = 27. Add these digits. You will always get a 9. It is modular arithmetic.
-
-------------------------- ------------------------------------------------------------------
RSVP, please reply with a number to rate this review: #1- learned something new. #2 - Didn’t read it. #3- very interesting. #4- Send another review #___ from the index. #5- Keep em coming. #6- I forwarded copies to some friends. #7- Don‘t send me these anymore! #8- I am forwarding you some questions? Index is available with email and with requested reviews at http://jdetrick.blogspot.com/ Please send feedback, corrections, or recommended improvements to: jamesdetrick@comcast.net.
or, use: “Jim Detrick” www.facebook.com, or , www.twitter.com.
707-536-3272, Saturday, April 14, 2012

No comments:

Post a Comment