All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Cows, horses and dogs (Posted on 2008-10-20) Difficulty: 2 of 5
I have cows, horses and dogs, a different prime number of each. If I multiply the number of cows (c) by the total of cows and horses (c+h), the product is 120 more than the number of dogs (d), that is: c*(c+h) = 120 + d.

How many of each do I have?

See The Solution Submitted by pcbouhid    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 10 of 13 |

Assuming that all prime numbers are odd, the sum c+h must be even, making the left side of the equation even.  But 120 + d must be odd.  Therefore, not all the primes can be odd, meaning that one must be '2'.  We know that 'c' cannot be '2' because that would make the left side even while the right side remained odd.  So that leaves 'h' and 'd'.

First consider d=2, or c*(c+d) = 122.  The problem here is that 122 has only two factors - 2 and 61.  Since the variables must be different, 'c' cannot equal 2.  Thus, h=2.

The left side can be rewritten using a new variable 'n' where:

n = c+1 and n = c+(2-1) = (c+h)-1

So c*(c+h) can be rewritten as (n+1)*(n-1)

or n²-1

So:  n²=121+d

Starting at 121, it is simply a matter of finding all the squares greater than 121 and subtracting 121 to see if a prime number results.

12²-121 = 23

Now, checking for n=12

c=11, h=2, d=23


  Posted by hoodat on 2008-10-26 23:51:19
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information