“29 and 30 are coprime so by setting z = 0 and using Bezout’s theorem we can see the answer is Yes.” took me about two seconds. It took me a minute or so to spot the “obvious” solution of x=1, y=4, z=7.

Actually, more than I’d like to admit, because at first sight I misunderstood the question and thought that we were asked to solve the equation. Afterwards, just 30 seconds:
30(x+y+z)-x+z=366=30·12+6, and then it goes as Chris wrote above.
Nice question anyway

366 is close to 360, which is 12*30. So 6*30 + 6*31 would work, except you wanted natural numbers, so we need at least one 29. So let’s trade 2*30 for 1*29 + 1*31, giving 1*29 + 4*30 + 7*31 = 366.

Trying to do it quickly, I did the wrong calculations. However it was not necessary to make any calculation, it is the leap year months, we have only one February with 29 days, 4 months with 30 days and 7 months with 31 days.

I first begin using algebraic manipulations to solve the problems,
and the i notice, 29,30,31 and see that these guys are the number of days in the moths,
so after that I see the Calendar to check the number of days of February in 2019, see 28 days, so the equation can’t be solve in the natural numbers.

Took me 15 seconds (additional 10 seconds to find how many months have 31 days by using the ‘knuckle’ method
1 month with 29 days = 29
4 months with 30 days. 30*4 = 120
7 months with 31 days. 31*7 = 217
Total = 366
so (x,y,z) = (1,4,7)

There are other possible solutions for the equation 29x + 30y + 31z = 366.
And well, yes. The other solution is (x,y,z) = (0,6,6)
This solution was the first adopted by the Romans and provided for
for normal years (x,y,z) = (1,5,6). It was the solution suggested by
Sosigene astronomer of Alexandria in Egypt and adopted by Julius Caesar in 46 a.c. It provided for 31-day January,
February of 29 days, and from March onwards an alternation of months from 31 days followed by months of 30 days. It was also decided to call August the month after July in honor of Augustus Emperor. It was also decided to change the duration of August from 30 days to 31 days at the same time changing the duration of February from 29 to 28 days in normal years and from 30 to 29 in leap years. It was also decided to reverse the duration of the following months from September to December to avoid three consecutive 31-month months.
The calendar as we know has been in force since 8 a.c. until the reform of 1582 Gregorian calendar.

## Chris Tunstall:

x + y + z = 12; z = x + 6; so 1, 4, 7 or 2, 2, 8. Took a couple of minutes (too long) owing to poor mental arithmetic!

4 January 2019, 11:47 am## Oscar Cunningham:

“29 and 30 are coprime so by setting z = 0 and using Bezout’s theorem we can see the answer is Yes.” took me about two seconds. It took me a minute or so to spot the “obvious” solution of x=1, y=4, z=7.

4 January 2019, 12:15 pm## Jess:

I’m pretty sure I’ll be able to answer this next year.

4 January 2019, 12:28 pm## tanyakh:

Jess, you made me laugh. You got it!

4 January 2019, 12:35 pm## JJ Rodríguez:

Actually, more than I’d like to admit, because at first sight I misunderstood the question and thought that we were asked to solve the equation. Afterwards, just 30 seconds:

4 January 2019, 3:11 pm30(x+y+z)-x+z=366=30·12+6, and then it goes as Chris wrote above.

Nice question anyway

## Andrew:

366 is close to 360, which is 12*30. So 6*30 + 6*31 would work, except you wanted natural numbers, so we need at least one 29. So let’s trade 2*30 for 1*29 + 1*31, giving 1*29 + 4*30 + 7*31 = 366.

4 January 2019, 3:58 pm## tanyakh:

Jess got it. I am not sure anyone else got it.

4 January 2019, 5:18 pm## JJ Rodríguez:

OK now. You’re so mean JFMAMJJASOND

4 January 2019, 6:13 pm## A puzzle for a leap year – The nth Root:

[…] Can the equation 29x + 30y + 31z = 366 be solved in natural numbers? (Tanya Khovanova’s Math Blog) […]

5 January 2019, 7:08 pm## Angelo Scordo:

A couple of minutes, I’m not a fast thinker.

6 January 2019, 9:54 amI summed 29+30+31 = 90

I made 366-90 = 276

276/3 = 92 = x = y = z

the solution is 121,122,123

## Angelo Scordo:

Trying to do it quickly, I did the wrong calculations. However it was not necessary to make any calculation, it is the leap year months, we have only one February with 29 days, 4 months with 30 days and 7 months with 31 days.

6 January 2019, 10:03 am## Darlyn Victoriano Bremont:

Only using logical deductions:

I first begin using algebraic manipulations to solve the problems,

9 January 2019, 7:21 amand the i notice, 29,30,31 and see that these guys are the number of days in the moths,

so after that I see the Calendar to check the number of days of February in 2019, see 28 days, so the equation can’t be solve in the natural numbers.

## Hiren:

Took me 15 seconds (additional 10 seconds to find how many months have 31 days by using the ‘knuckle’ method

14 January 2019, 1:52 pm1 month with 29 days = 29

4 months with 30 days. 30*4 = 120

7 months with 31 days. 31*7 = 217

Total = 366

so (x,y,z) = (1,4,7)

## Angelo Scordo:

There are other possible solutions for the equation 29x + 30y + 31z = 366.

18 January 2019, 3:00 amAnd well, yes. The other solution is (x,y,z) = (0,6,6)

This solution was the first adopted by the Romans and provided for

for normal years (x,y,z) = (1,5,6). It was the solution suggested by

Sosigene astronomer of Alexandria in Egypt and adopted by Julius Caesar in 46 a.c. It provided for 31-day January,

February of 29 days, and from March onwards an alternation of months from 31 days followed by months of 30 days. It was also decided to call August the month after July in honor of Augustus Emperor. It was also decided to change the duration of August from 30 days to 31 days at the same time changing the duration of February from 29 to 28 days in normal years and from 30 to 29 in leap years. It was also decided to reverse the duration of the following months from September to December to avoid three consecutive 31-month months.

The calendar as we know has been in force since 8 a.c. until the reform of 1582 Gregorian calendar.