SOLUTION: we have an unknown number of coin.If you make 77 strings of them, you are 50 coins short, but if you make 78 strings , it is exact.how many coins are there? [hint:use diophantine

Algebra.Com
Question 803420: we have an unknown number of coin.If you make 77 strings of them, you are 50 coins short, but if you make 78 strings , it is exact.how many coins are there?
[hint:use diophantine equation]

Answer by Edwin McCravy(20055)   (Show Source): You can put this solution on YOUR website!
Let n be the answer.

if you make 78 strings , it is exact.
So n is a multiple of 78, and therefore 

n = 78p, for some natural number q

If you make 77 strings of them, you are 50 coins short
So if 50 is added to n, the result is a multiple of 77

Therefore 

   n + 50 = 77q for some integer

Substitute 78p for n

(1)   78p + 50 = 77q

The smaller coefficient of a letter in absolute value is 77

So we rewrite 78 and 50 in terms of their nearest multiples of 77
We rewrite 78 as 77+1 and 50 as 77-27

  (77+1)p + 77-27 = 77q

77p + p + 77 - 27 = 77q

Divide through by 77

  p +  + 1 -  = q

Isolate the fractional terms

- = q - p - 1

The right side is an integer. Let that integer be A.

(2)     q - p - 1 = A

and so is the left side

            - = A  

Clear of fractions 

            p - 27 = 77A

                 p = 77A + 27

Substitute in (2)

         q - p - 1 = A
q - (77A + 27) - 1 = A
  q - 77A - 27 - 1 = A
      q - 77A - 28 = A
                 q = 28 + 77A

So the solution to (1) is (p,q) = (77A+27,28+77A)

n = 78p = 78(77A+27) = 6006A+2106

The smallest solution is when A = 0, 

n = 2106.

But there are infinitely many solutions, as A can be chosen as 
any positive integer.

Edwin

RELATED QUESTIONS

How many strings of 4 lower case English letters are there that have the letter x in them (answered by edjones)
This question concerns bit strings of length six. These bit strings can be divided up... (answered by Theo)
50% of the coins are pennies. Half of the remaining coins are quarters. The rest of the... (answered by richwmiller)
if you have a dollar in coins and you have six coins and five of them are dimes then what (answered by stanbon)
I am doing discrete math, and we are studying Finite State Machines. But i am a little... (answered by richard1234)
1) There are 4 golden coins and 8 iron coins in a bag. You select one coin from the bag,... (answered by greenestamps,ikleyn)
1. How many strings of 5 lower case English letters are there that have the letter x in... (answered by edjones)
If you have 10 coins that are worth 50 cents how many make 11.00... (answered by ikleyn)
Consider the strings that consist of four lowercase letters and have the letter z in... (answered by Fombitz)