A number theory problem by Dinesh Nath Goswami

If 29 x + 30 y + 31 z = 366 29x +30y+ 31z=366 , where x , y x,y and z z are non-negative integers , then find the least value of x + y + z x + y + z .


The answer is 12.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

6 solutions

Konstantin Zeis
Jul 14, 2016

Notice that the coefficients of x, y and z are the number of days of the different kinds of month we have. Also, 366 is the number of days there are in a year. From there it follows, that the sum of x, y and z must be 12, because we have 12 months a year.

Nice observation but that doesn't prove that it is minimum

Arulx Z - 4 years, 10 months ago

Great observation, but note that non-leap years only have 365 days, so what we're dealing with here is a leap year, in which February has 29 days instead of the "usual" 28. The solution triple ( x , y , z ) = ( 1 , 4 , 7 ) (x,y,z) = (1,4,7) corresponds to your interpretation, but note that there are other solution triples. What they all have in common, though, is that x + y + z = 12 x + y + z = 12 .

Brian Charlesworth - 4 years, 11 months ago

Great Observation

Kushal Bose - 4 years, 11 months ago
Sam Bealing
Jul 14, 2016

Firstly I'm going to assume you mean positive or at least non-negative integral value otherwise there is more than one answer (try x = 20 , y = 3 , z = 4 x + y + z = 13 x=20,y=-3,z=-4 \implies x+y+z=13 ).

Clearly we have 0 x , y , z < 13 0 \leq x,y,z<13 otherwise the expression will be too large (as all variables are positive).

Consider the expression ( m o d 29 ) \pmod{29} :

29 x + 30 y + 31 z y + 2 z 18 ( m o d 29 ) As 366 18 ( m o d 29 ) 29x+30y+31z \equiv y+2z \equiv 18 \pmod{29} \quad \quad \small{\color{#3D99F6}{\text{As } 366 \equiv 18 \pmod{29}}}

Note 0 y , z < 13 0 y + 2 z < 39 0 \leq y,z<13 \implies 0 \leq y+2z<39 . Combining this with the above expression we get y + 2 z = 18 y+2z=18 :

29 x + 30 y + 31 z = 29 ( x + y + z ) + ( y + 2 z ) = 29 ( x + y + z ) + 18 29x+30y+31z=29(x+y+z)+(y+2z)=29(x+y+z)+18

29 x + 30 y + 31 z = 366 29 ( x + y + z ) + 18 = 366 x + y + z = 348 29 = 12 29x+30y+31z=366 \implies 29(x+y+z)+18=366 \implies x+y+z=\dfrac{348}{29}=\boxed{\boxed{12}}


The reasons we need the non-negative condition is because otherwise y + 2 z 18 ( m o d 29 ) y+2z \equiv 18 \pmod{29} has infinite solutions (e.g. 18 , 47 , 11 18,47,-11 ).

Set ( x , y , z ) = ( 30 k 365 , 364 29 k , 1 ) (x,y,z)=(30k-365,364-29k,1) . This gives:

{ 29 x + 30 y + 31 z = 29 ( 30 k 365 ) + 30 ( 364 29 k ) + 31 = 366 x + y + z = ( 30 k 365 ) + ( 364 29 k ) + ( 1 ) = k \begin{cases} 29x+30y+31z=29(30k-365)+30(364-29k)+31 &=366 \\ x+y+z=(30k-365)+(364-29k)+(1) &=k \end{cases}

Thus we could generate any value for x + y + z x+y+z .

Moderator note:

Finding the seed solution is often the hardest part of solving the linear diophantine equation.

It generally helps if we can restrict the values somehow, especially by considering modulo the coefficients.

I've edited the problem to specify that x , y , z x,y,z must be non-negative in order to achieve a unique solution. The possible triples are then ( x , y , z ) = ( 0 , 6 , 6 ) , ( 1 , 4 , 7 ) , ( 2 , 2 , 8 ) (x,y,z) = (0,6,6), (1,4,7), (2,2,8) and ( 3 , 0 , 9 ) (3,0,9) , all of which yield that x + y + z = 12 x + y + z = 12 . Nice solution, btw. :)

Brian Charlesworth - 4 years, 11 months ago

Good idea to use modular arithmetic and also , for reflection , a good illustration of understanding and expressing the auto-referentiality in terms of this arithmetic anyway.

In general it's use is very cute in any quantitative problem where some equation/expression is determined by operations that are reducible to and can be thought by a continuously repeating constant like here as it makes direct exactly that so to say repetitive by a constant increase of quantity given anyway.

A A - 4 years, 11 months ago
Vinay Somasundar
Jul 15, 2016

29x + 30y + 31z = 366

Can be written as

30(x + y + z) = 366 + x - z.

RHS has to be multiple of 30 and 360 is the number closest to the RHS that keeps x and z as small as possible.

Hence x + y + z from the LHS can be equated to 12

Anirudha Brahma
Jul 20, 2016

The first thought that came to me was that 366 were the no. of days in a leap year with months having days 29 , 30 , 31

There are 12 months in a calendar year

So the answer is 12

Mirko Rossini
Jul 18, 2016

Writing 29 as 30 - 1, And 31 as 30 + 1, it's Easy To See that 12 Times 30 is The cheapest Way to reach something near 366. Now, Just put z = x + 6. A value x + y + z < 12 won't neither reach 366 (z = 11 --> 341)

Will Jain
Jul 17, 2016

Use AM-GM inequality. (value is slight greater than 12 but since we need an integer value 12 is the answer

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...