Questions tagged [calendar-computations]

This tag is for questions about combinatorial and computational issues with regards to calendar systems. A typical, well-known mathematical result in this direction is John Conway's Doomsday Algorithm for computing the "day of the week" associated to a given date.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Does every reasonable Julian century have a corresponding Gregorian century with a matching Easter pattern?

Given any $c \in \mathbb{N}$ (with $c \ge 4$) for which $c \mod 7 \in \{0,2,4,5\}$, is there a $d \in \mathbb{N}$ (with $d \ge 16$) for which the Julian Easter date of $100 \cdot c+y$ matches the ...
user avatar
0 votes
1 answer
22 views

Hash function from date to biweekly event

My trash gets picked up every other Tuesday. Now it's easy to remember what day of the week it is, but not so easy to remember if it's a skip week or not - especially if you miss it sometimes. You ...
user avatar
2 votes
0 answers
31 views

Find the date at which a group of people will reach a target age sum

The goal is to find the date at which the sum of ages of a group of people will reach a certain number. Though I seem to have found an approximative solution, some issues remains, that I don't know ...
user avatar
  • 121
0 votes
0 answers
33 views

How to converts total days passed since epoch from real Gregorian calendar to teorical Gregorian that all years are leap years?

Assuming: there is a "hypothetical Gregorian calendar" with same notations of the realistic (but no week days); therefore each date of the hypotetical calendar has the format "month ...
user avatar
  • 184
1 vote
0 answers
50 views

Calculate what day it will be 100 years [duplicate]

I'm trying to figure out how to calculate the day it will be in 100 years. I've written some python code that takes two inputs from the user, a year and day and then I'm trying to calculate what day ...
user avatar
2 votes
1 answer
63 views

How exactly to calculate a Julian Date from today's date?

I have today discovered the intricacies of software dates. That led me to this page which shows: $$JD=int[365.25\; y]+int[30.6001\; (m+1)]+D+\frac{UT\_hours}{24.0}+1\,720\,981.5 \qquad$$ However, ...
user avatar
  • 3,226
1 vote
1 answer
51 views

Frequencies of gaps between years with $3$ Friday the 13ths

Years with $3$ Friday the 13ths in the Gregorian calendar usually occur with gaps of $3$ or $11$ years, except for two $6$-year gaps (between $2099$ and $2105$, and $2195$ and $2201$) and one $12$-...
user avatar
0 votes
1 answer
44 views

Odds $11$ to $3$ against a month selected randomly containing portions of $6$ different weeks

Here's a problem from my probability textbook: Show that the odds are eleven to three against a month selected at random containing portions of six different weeks. Here are some initial thoughts. ...
user avatar
3 votes
2 answers
158 views

Reliable Formula for repetition of of calendar

I am trying to get a formula for repetition of calendars (for years to repeat with same day-date pattern) I could see the following rule in some of the online sites a) If given year is at 1st ...
user avatar
  • 4,098
1 vote
1 answer
147 views

Conversion from epoch time to (dd/mm/yyyy) date format

The title pretty much explains my problem. I´m given the number of seconds that have passed since the 1st of January 1970 and I have to return today´s date in (dd/mm/yyyy) format. I know how to ...
user avatar
0 votes
1 answer
32 views

A formula to determine the number in a given sequence

I'm working with some specific numbers concerning a calendar calculation. Basically, 13 years in a sequence correspond to 13 different numbers: Year Given number Year 1 1 Year 2 10 Year 3 6 Year ...
user avatar
1 vote
0 answers
22 views

Lunisolar calendar: what phase was the moon X years ago on the spring equinox?

How would I go around answering these questions (e.g., for $X=10,000$ -- IOW, historical observations are not available and the time is too long ago to rely on a fixed calendar): How many days ago ...
user avatar
  • 4,333
1 vote
0 answers
20 views

Wikitext, #time parser function: Find last month with five Mondays

in Asphalt Wiki, we have templates for repeating events in the Asphalt games. These templates also display if an event is currently running. In one of the games, events are bound to days of the month ...
user avatar
1 vote
0 answers
77 views

Can an age or a difference between two dates be represented linearly?

I've found an interesting answer on StackOverflow when it comes to calculating someone's age based on that person's date of birth and the date at which the age is calculated. The calculation is ...
user avatar
1 vote
0 answers
75 views

Finding Anchor day of any year using Doomsday rule.

There is a formula or a method given by Sir John Conway to find any given year anchor day after year 1800 assuming that we are using Gregorian calendar .For example for finding anchor day (also known ...
user avatar
0 votes
0 answers
37 views

formula for date as # day of the gregorian calendar_year (including leap years, excluding leap-seconds)

large to small could go 2021-Jan-02nd. Suppose want it in U.S. style, 01/02/'21, where 01/01 = January 1st = day#1 of the year (2021). 01|31 02|28,29 03|31 04|30 05|31 06|30 07|31 08|31 09|30 10|31 11|...
user avatar
9 votes
1 answer
1k views

Formula to find the day of any date in Gregorian calendar derivation.

My teacher taught an expression to find the day of any date in the Gregorian calendar. Expression: $$ \bbox[5px,border:2px solid red] { D\equiv {d+c_m+c_y+c+\left\lfloor\dfrac c4\right\rfloor \pmod7} }...
user avatar
  • 1,331
0 votes
1 answer
275 views

Suppose today is Wednesday. What day of the week will it be $10^{{10}^{10}}$ days from now? [duplicate]

Question: Suppose today is Wednesday. What day of the week will it be $10^{{10}^{10}}$ days from now? Answer: This is what I have tried so far. I know that you need to find $10^{{10}^{10}}\text{mod} 7$...
user avatar
2 votes
1 answer
92 views

Computation of Easter date (UK statutory method)

The statutory method for the computation of Easter in the UK (and presumably also the USA) is contained in the Calendar (New Style) Act 1750. This is the same Act which moved the British Empire from ...
user avatar
  • 141
4 votes
2 answers
113 views

Question concerning the solution of a certain calendar problem involving modular arithmetic.

A question I was given is the following: A certain month on the calendar has 31 days, and it has an equal amount of Mondays and Wednesdays. How many different kind of days(Monday to Sunday) can be ...
user avatar
  • 2,361
2 votes
1 answer
199 views

How can I find day of a certain month when the sum of all thursdays is a certain number?.

The problem is as follows: The sum of all thursdays in certain month is $80$ and equal to the sum of all sundays in the following month, which has the same number of mondays than fridays it has ...
user avatar
0 votes
2 answers
42 views

How can I find the name of the last day of a week in certain year when the name of a day of a month for that year is given?

The problem is as follows: Roger sees in his almanac that a certain month from a year the first day was monday and the last day was also monday. What day of the week, was the last day of that ...
user avatar
0 votes
3 answers
43 views

How can I find the a certain birthdate of two people when one information given depends on the other?

The problem is as follows: Mike was born on $\textrm{October 1st, 2012,}$ and Jack on $\textrm{December 1st, 2013}$. Find the date when the triple the age of Jack is the double of Mike's age. The ...
user avatar
0 votes
1 answer
114 views

Why the 28 year day-date repetition rule doesn't always follow?

I was studying the pattern of calendar and found out that the years repeat same day-date pattern over a period of 28 years but the pattern broke if we compare 1752 and 1780.(By day-date pattern i mean ...
user avatar
0 votes
2 answers
506 views

What is the maximum number of years I have to wait till my birthday falls again on a Sunday?

Suppose my birthday fell on a Sunday. What is the maximum number of years I may have to wait till my birthday falls on a Sunday again? My intuition says 11 years: At the earliest, the next Sunday is ...
user avatar
  • 267
2 votes
2 answers
111 views

How many times in the future after the 1st of January of 2019 will a palindrome date happen?

I'm trying to solve the following problem: How many times in the future (before the year 10000) will after the 1st January of 2019 happen a palindrome date. Date is in the dx-my-ymxd forum, and ...
user avatar
  • 463
-1 votes
2 answers
211 views

Must each new year always contain a Friday the 13th?

I am wondering if there is any way to determine whether it is possible to have a year that does not contain a Friday the 13th?
user avatar
  • 117
0 votes
0 answers
43 views

When does adding 180 or 220 years give a date falling on the same day of the week?

Many dates in the Gregorian calendar repeat the day of the week after 180 and/or 220 years. In fact, this was already the case for October 15, 1582 (1582, 1762, and 1802 all had October 15 on a Friday)...
user avatar
2 votes
3 answers
2k views

How many years later the calendar of 2016 can be reused?

How many years later the calendar of 2016 can be reused? I was asked this question in an exam. I want to explain the term 'reuse' . If we ignore the holidays and our only purpose is to check the date ...
user avatar
  • 3,203
1 vote
1 answer
93 views

How to find the week day of (any) given date? [duplicate]

How to find the week day of any given date? Say we need to know in which week-day was June $25,2019$?
user avatar
0 votes
1 answer
120 views

"New Year falls more often on Sundays than on Mondays"

This is a question from a hungarian math contest from the year 1948. It was Saturday on the 23rd October, 1948. Can one conclude that New Year falls more often on Sundays than on Mondays? Well, I ...
user avatar
2 votes
1 answer
185 views

Number of occurrences of a generic recurring event between two dates

Intro Cron is a very common tool in computer science, which allows to schedule an event given a generic pattern written in a file called crontab. I'm researching on an algorithm to calculate the ...
user avatar
5 votes
4 answers
2k views

Why don't we subtract out / ignore the leap year every 128 years? [closed]

When we add the extra day to the calendar every 4 years it's to "correct" the calendar under the assumption that the year's length is 365.25 days. Every year, you're .25 days off, so after 4 years, ...
user avatar
  • 59
0 votes
0 answers
57 views

I want to know what not integer numbers means in calendar?

I want to know what not integer numbers means in this case? if $30$ days $= 4$ weeks and $2$ days $4.2$ then why $20$ days does not correspond to $2$ weeks and $8$days $4,8$? being that: $\frac{30}{...
user avatar
2 votes
5 answers
502 views

Prove That the Shortest Period of the Gregorian Calendar is 400 Years

I ask for help. I would like to resolve the following question: Let $A$ be the set of natural numbers greater than 1582. If, for every $Y\in A$ , the years $Y$ and $Y + n$ (of the actual calendar, ...
user avatar
  • 3,777
0 votes
1 answer
2k views

Difference between two dates in math formula

Good evening guys, I have little problem, I have to calculate how many days do I have between two dates which contains specific day, month and even year, do you guys have any idea how should I do that?...
user avatar
  • 11
2 votes
2 answers
60 views

How can I find the day of the week which an event happened after some time has elapsed?

The problem is as follows: An astronomer discovers a new comet while scouting the skies on Monday but decides to report his discovery $256$ days after. What day of the week did the astronomer ...
user avatar
4 votes
1 answer
488 views

Math behind leap year cycle

Everybody knows that leap year is year which is divisible by 4. In case of century years, it has to be divisible by 400. The leap year cycle has 400 years (calendar repeat with the same day-date ...
user avatar
0 votes
1 answer
113 views

Tonalpohualli calculations

I was doing some math on the Tonalpohualli, the mexica ritual calendar. This calendar has 260 days divided in 13-days periods associated with 20 distinct symbols. Every 13-days period is called a ...
user avatar
1 vote
1 answer
496 views

Formula to find the date given a specific year, month, and day of the week

I need a formula to get me to the first or third specified day of the week of the following year. So, here is the information I am presented. I have a year (y), a month (m) and a day of the week (n). ...
user avatar
  • 113
2 votes
2 answers
149 views

Identical calendars

We can see, for example, that the years 2009 and 2015 have identical calendars. Similarly, 2000 and 2028. I read once that given any year X at most 28 years later there will be another year Y, with ...
user avatar
  • 3,777
0 votes
0 answers
315 views

Calculating which day of the week a date falls on using Gauss's algorithm and modulo arithmetic

I've been told there's a straightforward way to determine which day of the week a date falls on, by first using Gauss's algorithm, to find the day of the week of 1st of January. Then this can be ...
user avatar
  • 822
0 votes
2 answers
129 views

I am a twin who celebrated my 13th birthday on Friday the 13th. Is this rare? What is the probability of this occurring?

I was born a twin who celebrated my 13th birthday on Friday the 13th many years ago. Is this rare? What is the probability of this occurring? I am a senior who finally wants to know the answer. ...
user avatar
0 votes
2 answers
32 views

How do you figure out what # of 4 a Week # is?

If we round down the number of weeks in a year to 52, And we label each of the 52 weeks either 1, 2, 3, or 4 And we label them in order, the first week of the year being 1, the second being 2, third ...
user avatar
0 votes
2 answers
188 views

Number of Tuesdays in five consecutive calendar years taken together is exactly 260. Which day of the week was 1st Jan. of the first of five years?

Number of Tuesdays in five consecutive calendar years taken together is exactly 260. Which day of the week was 1st January of the first of these five years? I don't know at all how to do this ...
user avatar
0 votes
1 answer
99 views

Finding the initial day of the week (Calendars)

Number of Tuesdays in five consecutive calendar years taken together is exactly $260$. Which day of the week was $1st$ January of the first of these five years? On the basis of given information the ...
user avatar
0 votes
1 answer
64 views

Mathematical measure of whether something's on schedule or not?

Say I decide to jog everyday for 1 km. I start jogging and I keep a log of which days I'm jogging on. Now after a couple of months, I notice in my logbook that although I jogged for 1 km on most days, ...
user avatar
  • 340
1 vote
2 answers
9k views

Monday falls on 20th March, 1995. What was the day on 3rd November, 1994?

Monday falls on 20th March, 1995. What was the day on 3rd November, 1994? Days in November 1994( starting from 3rd)= $27$ Days in December 1994=$31$ Days in January 1995=$31$ Days in February 1995= $...
user avatar
1 vote
4 answers
106 views

If I wanted to determine today's date based on my birthdate, how could I do that mathematically?

Let's say for example my birthday is August 17, 1996. Each year has 365 days except leap years. If I didn't know whether 1996 was a leap year or not, is there a way I can see how many days I've been ...
user avatar
0 votes
0 answers
33 views

Number of 1st Jan Sundays between year a and b.

Given two year number a and b (eg a=1000 b=2000). Find the number of 1st January Sundays? Given 1st Jan 2001 was Monday? I figured that day sequence repeat after 28 years. But produced wrong answer. ...
user avatar