Do you want to be rich?

Is it possible to have exactly 100 100 coins made up of pennies ($0.01), dimes ($0.10) and quarters ($0.25) to be worth exactly $5?

No Inadequate Information Yes

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.

5 solutions

Arulx Z
Oct 1, 2015

Let the there be p p pennies, d d dimes and q q quarters. So

p + d + q = 100 p + 10 d + 25 q = 500 p+d+q=100 \\ p+10d+25q=500

On subtracting the first equation from the second one, we get

9 d + 24 q = 400 9d+24q=400

3 9 q 3|9q and 3 24 q 3|24q so 3 3 must also divide 400 400 if any integral values of d d and q q exist. But we see that 3 400 3\nmid 400 . So no integral solutions of d d and q q exist.

Note

  • a b a|b means a a divides b b or in other words, a n = b an=b for some integer n n . Examples: 3 6 3|6 and 7 21 7|21 .

  • If a b a|b and a c a|c , then a ( b + c ) a|(b+c)

Could you explain how do you get the 'p+10d+25q=500' equation?

Raymond Julianto - 5 years, 8 months ago

Log in to reply

$0.01 = 1 penny

$0.10 = 1 dime

$0.25 = 1 quarter

Let p p , d d and q q be the number of pennies, dimes and quarters respectively. Therefore,

0.01 p + 0.1 d + 0.25 q = 5 p 100 + d 10 + q 4 = 5 p + 10 d + 25 q = 500 0.01p+0.1d+0.25q=5\\ \frac { p }{ 100 } +\frac { d }{ 10 } +\frac { q }{ 4 } =5\\ \therefore p+10d+25q=500

Arulx Z - 5 years, 8 months ago

Log in to reply

ah, i see, thanks!

Raymond Julianto - 5 years, 8 months ago

Log in to reply

@Raymond Julianto You are welcome :)

Arulx Z - 5 years, 8 months ago
Mohamed Wafik
Oct 12, 2015

x + 10 y + 25 ( 100 x y ) = 500 x+10y+25(100-x-y)=500

2000 = 24 x + 15 y = 3 ( 8 x + 5 y ) 2000=24x+15y=3(8x+5y)

for x and y to be integers then 2000 must be divisible by 3 which is wrong therefore, no combination is possible.

Devin Swincher
Oct 11, 2015
1
2
3
4
5
6
#Python
for p in range(0,100,5):
    for d in range(0,100-p):
        q = 100-p-d
        if .01*p + .1*d + .25*q == 5.00:
            print "Success!", p, "pennies", d, "dimes", q, "quarters"

This has no output, so there are no successes. If you change the amount to $5.05, there are three such instances. By the way, the language is Python.

Wisnu Ops
Oct 10, 2015

x x , y y , z z are pennies, dimes, and quarters respectively. Where x x , y y , and z z are integers.

Let's evaluate two information in the problem:

(1) The number of coins are 100. So, x + y + z = 100 x + y + z = 100

(2) Total value of the coins are $5. So, 0.01 x + 0.10 y + 0.25 z = 5 0.01x + 0.10y + 0.25z = 5

We can also write both equations like this:

(1) x + y + z = 100 x + y + z = 100

(2) x + 10 y + 25 z = 500 x + 10y + 25z = 500

Subtract (2) with (1), we will get:

9 y + 24 z = 400 9y + 24z = 400

Now, divide both sides with 3 3 and we get:

3 y + 8 z = 400 3 3y + 8z = \frac{400}{3}

If y y and z z are integers, it is impossible that 3 y + 8 y 3y + 8y equals a fraction. Therefore we conclude that the system of equations has no solution.

Manit Kapoor
Oct 10, 2015

Let x be number of coins of pennies

y be number of coins of dimes

z be number of coins of dimes

as

0.01x+0.10y+0.25z=5.00..............................(1)

x+y+z=100..................................................(2)

Multiply (1) by 100 on both sides

x+10y+25z=500................................................(3)

x+y+z=100..................................................(2)

take z on left side

x+10y=500-25z..................................(4)

x+y=100-z........................................(5)

Solve (4) and (5)

get x in terms of z only

x=(100-3z)/3

z can have values from 0 to 20 [from (3) we can find this range, put x=0, y=0, z=500/25=20]

100-3z can be never be a Multiple of 3 for any value of z in [0,20]

So the answer is NO

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...