| 08-10-2007, 02:04 PM | #1 |
|
Member
Private
Join Date: Jul 2007
Posts: 42
Thanks: 3 Thanked 4 Times in 4 Posts |
True or false: The 13th of a calendar month most likely occurs on Friday than on any other days of the week.
|
|
|
|
| 08-18-2007, 02:47 PM | #2 |
|
Member
Private
Join Date: Jul 2007
Posts: 27
Thanks: 0 Thanked 1 Time in 1 Post |
True, since people likely give more attraction to it and remember longer when it falls on Friday than other days of the week
![]() |
|
|
|
| 08-20-2007, 12:16 PM | #3 |
|
Member
Private
Join Date: Jul 2007
Posts: 42
Thanks: 3 Thanked 4 Times in 4 Posts |
Good shot! But it is not that simple. In fact from 0007AD to 4007AD there are:
6845 Monday 13th 6843 Tuesday 13th 6864 Wednesday 13th 6834 Thursday 13th 6873 Friday 13th 6834 Saturday 13th 6863 Sunday 13th Exercise: Write a program in whatever language you are comfortable with to verify the above results. Report the length of your program and execution time. My R codes are 10 lines long and take 310 seconds to obtain the results. |
|
|
|
| 08-25-2007, 02:52 AM | #4 |
|
Member
Join Date: Aug 2007
Posts: 3
Thanks: 2 Thanked 0 Times in 0 Posts |
Is this still true for any period and not just that span of 4000 years?
|
|
|
|
| 08-27-2007, 10:13 AM | #5 |
|
Member
Private
Join Date: Jul 2007
Posts: 42
Thanks: 3 Thanked 4 Times in 4 Posts |
|
|
|
|
| 02-17-2008, 09:32 PM | #6 | |
|
Member
Private
Join Date: Jul 2007
Posts: 27
Thanks: 0 Thanked 1 Time in 1 Post |
Quote:
Sorry haven't visited the forum for a while I'm too lazy to run a program for that - or maybe i'm not good enough to write it - both might be true. I think your calculation fell short of something. I expected the total number of 13th day is 4001 * 12 = 48012, but the total I saw from your calculation is 47956. Where're the others? Or I am missing something here? |
|
|
|
|
| The Following User Says Thank You to dexter8310 For This Useful Post: |
giangle (02-18-2008)
|
| 02-18-2008, 10:58 AM | #7 |
|
Member
Private
Join Date: Jul 2007
Posts: 42
Thanks: 3 Thanked 4 Times in 4 Posts |
Thank dexter8310 for spotting this out. The discrepancy comes from my misreporting the time span in the previous post (0007AD to 4007AD). In fact, the time span was generated by the following code:
many.years=seq((today-(num.years-1)*365),(today+num.years*365),1) where num.years=2000. Thus, many.years is obviously not 4000 years because of the leap year effect. After rerunning the program today, I get the actual time span from 17/06/0010AD to 21/10/4006AD which covers exactly 47956 full months. Sorry all for my mistake. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|