Christmas Streak 47/88: Diophantine #1

Tom is going to buy some tomatoes and carrots with $31.

A tomato costs $4, and a carrot costs $5.

Given that Tom has to use all of his money, how many tomatoes should he buy?


This problem is a part of <Christmas Streak 2017> series .

0 1 2 3 4

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.

3 solutions

Massimo 22
Nov 24, 2017

31 isn’t a multiple of 5. My approach was to think about just that one, because 30 is a multiple of five. So basically 5 + 4 x = 1 ( m o d 10 ) 5 + 4x = 1(mod 10) and the answer is 4.

Boi (보이)
Nov 18, 2017

Tomato = x , x, carrot = y . y.

4 x + 5 y = 31 4x+5y=31

If x = 0 , x=0, then y = 31 5 . y=\frac{31}{5}.

If x = 1 , x=1, then y = 27 5 . y=\frac{27}{5}.

If x = 2 , x=2, then y = 23 5 . y=\frac{23}{5}.

If x = 3 , x=3, then y = 19 5 . y=\frac{19}{5}.

If x = 4 , x=4, then y = 3. y=3.

x = 5 y = 11 5 x = 6 y = 7 5 x = 7 y = 3 5 x = 8 y = 2 5 x=5 \Rightarrow y=\frac{11}{5} \\ x=6 \Rightarrow y=\frac{7}{5} \\ x=7 \Rightarrow y=\frac{3}{5} \\ x=8 \Rightarrow y=-\frac{2}{5}

Therefore, the only value possible for x x is 4 . \boxed{4}.

Saksham Jain
Nov 18, 2017

try to break 31 in form 5x+4y by trying different values of x or y therefore answer is 4

yes that is exactly what I did. For these easy problems that is faster

Fake Account - 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...