Math Problem Statement

  1. This is an ancient puzzle problem: "Yen Kung, 1372. We have unknown number of coins. 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: If N is the number of coins, then N = 77x + 27 = 78y * 0.1 (25 points) solve using deophantine equation

Solution

This problem involves solving a Diophantine equation based on the conditions given in the puzzle. Here's how we proceed:


Problem Setup:

Let NN be the total number of coins.

  1. From the first condition:
    N=77x+27N = 77x + 27, where xx is the number of strings (integer).

  2. From the second condition:
    N=78yN = 78y, where yy is another integer.

Equating the two expressions for NN:
77x+27=78y77x + 27 = 78y

Rearranging terms:
78y77x=2778y - 77x = 27

This is a linear Diophantine equation in the form ax+by=cax + by = c, with a=78a = 78, b=77b = -77, and c=27c = 27.


Step 1: Check for Solvability

A Diophantine equation has integer solutions if and only if the greatest common divisor (GCD) of aa and bb divides cc.

  • GCD(78,77)=1\text{GCD}(78, 77) = 1
  • Since 11 divides 2727, the equation is solvable.

Step 2: Solve Using Extended Euclidean Algorithm

We solve 78y77x=2778y - 77x = 27 to find a particular solution.

Extended Euclidean Algorithm:

  1. Divide 78 by 77:
    78=177+178 = 1 \cdot 77 + 1
    77=771+077 = 77 \cdot 1 + 0
    Hence, GCD(78,77)=1\text{GCD}(78, 77) = 1.

  2. Express GCD as a linear combination:
    1=781771 = 78 - 1 \cdot 77.

  3. Multiply through by 27 to scale up to the desired constant:
    27=27(78)27(77)27 = 27(78) - 27(77).

Thus, a particular solution is:
y0=27y_0 = 27, x0=27x_0 = 27.


Step 3: General Solution

The general solution to a Diophantine equation is:
y=y0+kbGCD(a,b)y = y_0 + k \cdot \frac{b}{\text{GCD}(a, b)} x=x0kaGCD(a,b)x = x_0 - k \cdot \frac{a}{\text{GCD}(a, b)}

Here, bGCD(a,b)=77\frac{b}{\text{GCD}(a, b)} = -77 and aGCD(a,b)=78\frac{a}{\text{GCD}(a, b)} = 78:
y=27+k(77)y = 27 + k(-77) x=27k(78)x = 27 - k(78)


Step 4: Find Positive Integer Solutions

We require N=78y>0N = 78y > 0 and x>0x > 0. From y=2777ky = 27 - 77k, kk must ensure yy is positive.

Solve for y>0y > 0:

2777k>0    k<2777.27 - 77k > 0 \implies k < \frac{27}{77}. The only valid kk is k=0k = 0.

Substitute k=0k = 0:

y=27,x=27.y = 27, \quad x = 27.

Compute NN:

N=78y=78(27)=2106.N = 78y = 78(27) = 2106.


Final Answer:

The total number of coins is 2106\mathbf{2106}.


Would you like further details or assistance with other problems?

Related Questions:

  1. What are the properties of Diophantine equations in general?
  2. How does the Extended Euclidean Algorithm work in detail?
  3. Can you show more examples of linear Diophantine equations?
  4. What happens if the GCD condition is not met in such problems?
  5. How does one apply this approach to non-linear equations?

Tip:

Always verify the solvability of a Diophantine equation by checking the GCD condition before

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Number Theory
Diophantine Equations
Linear Algebra

Formulas

General Diophantine equation form: ax + by = c
GCD condition for solvability: GCD(a, b) must divide c
General solution: x = x₀ + k(b/GCD(a, b)), y = y₀ - k(a/GCD(a, b))

Theorems

Extended Euclidean Algorithm

Suitable Grade Level

Undergraduate Level (or advanced high school in number theory topics)