For the year 2015, determine the following: a) the calendar dates on which Mondays will occur in March. b) the months in which the 13th will fall on a Friday.
2 9 16 23 30
lol you sure you didnt look at calendar ?
ugh i wiSH ALL THE MONTHS HAD THE SAME NUMBER OF DAYS
no i did lol
okay i believe you :) if each month has same number of days, then i guess summer wont come in the same month each year haha
thats not a typo i did look at the calender
(...) By the 16th century, the accumulating inaccuracy caused the vernal equinox (the first day of Spring) to fall on March 11 instead of its proper day, March 21. The calendar's inaccuracy naturally persisted throughout the year, but at this season it meant that the Easter festival was celebrated at the wrong astronomical time. Pope Gregory XIII rectified the discrepancy in a new calendar, imposed on the predominantly Catholic countries of Europe. He decreed that 10 days were to be omitted from the year 1582, by having October 15 of that year immediately follow October 4. At the same time, the Jesuit mathematician Christopher Clavius amended the scheme for leap years: these would be years divisible by 4, except for those marking centuries. Century years would be leap years only if they were divisible by 400.
it is fascinating how calendar was really a big deal in those days xD
@ganeshie8 lol is srsly intelligent
not rly but thank you @sumanta <3
Jan- 31, 23=Friday feb 28 march 31
31=Friday
Feb28 is sunday then
wait
@ganeshie8 Back then Calendars and Candles were big on the market. Similar todays IPhones and 3d TV's xD
oh saturday is 31st
i think feb month is a pain in the neck for working calendar problems we can ease the pain by pretending that the year starts with March instead
but then in july and aug its 31 31
lol true @Joel_the_boss good old days enjoyed by our great forefathers !
or i think we shud just chuck
the months and keep 52 weeks
52*
12, 13s
yeah having somethign concrete to play wid is a good start xD today is jan23, friday. also assigning numbers to days might open other ways to approach these problems in general : ``` 0 -> sunday 1 -> monday 2 -> tuesday 3 -> wednesday 4 -> thursday 5 -> friday 6 -> saturday ```
and writing out all those 30s and 31s in order
or by remainders of 7 starting from jan
jan-3 feb-0 3 2 3 2 3 3 2 3 2 3
interesting xD so looks like a 30 day month advances by 2 a 31 day month advances by 3
im trying to see if there is a better way to put this to gether
like there is lots of recursion here
im seeing if we can think of it as a big matrix and applying transformations over and over for next years
suppose if March 1 is Sunday (0), the June 1 will be : 3+2+3 = 8 = 1 = Monday
yeah
suppose if March 13* is Sunday (0), the June 13* will be : 3+2+3 = 8 = 1 = Monday
by same process
can u see a way to rearrange all this in nice matrix usable form
yes looks it works in general I think if we find the day of March1, it will be simple to work the months in which 13th will fall on friday
Oh never thought about matrices, let me think a bit..
0 1 2 3 4 5 6 7 sun - sat -------------------------------- Rems 3 0 3 2 3 2 3 3 2 3 2 3
i see why you think matrices will show up xD
Okay lets write out 12 equations
lets add this in too umm yearly shifts = sum (3 0 3 2 3 2 3 3 2 3 2 3) mod 7
lets just ignore leapyears for now lol
but if u wanna account for leap years we repeat this same process except we take 48 month pattern
365 = 1 (mod 7) 366 = 2 (mod 7)
ya
so a non leap year advances by 1 week day if this year starts with Sunday, then next year will start with Monday ?
yeah
that looks interesting
lets try to get it in this form A B = C Let A be the transformation matrix Let B be in the input vector taking 2 parameters, one for the year difference from now and the day in the year For example B=<3,200> means 3rd year from now and 200th day
and we shud probably hold Now in some Vector
or forget now as a vector lets just take it always relative to jan 1st of 2015
and C has to be just 1 output for the day thats good enuff for now
if C=0 then sunday C=1=monday... and so on
|dw:1422010975319:dw|
Join our real-time social learning platform and learn together with your friends!