扩展:什么是丢番图方程?

Read · 1 min

Warm-Up

You and your best friend Diophantus (who doesn't have a friend named Diophantus?) are in a candy store. You are entirely captivated by two types of candy - chocolates and caramels. One package of chocolates cost $3\$3, while one package of caramels cost $4\$4. You reach into your pockets and find that you have $21\$21. How should you spend your money if you want to spend all your money on chocolates and/or caramels?

Fortunately, your friend Diophantus is here to help out. He teaches you about Diophantine equations so you don't need to guess and check all the different spending possibilities.

Definitions

Definition: A Diophantine equation is an equation solving only for integer solutions.

Linear equations, such as 3x+4y=213x+4y=21, are called linear Diophantine equations. A linear Diophantine equation is of the general form aX+bY=caX+bY=c, for which a,b,c∈Za, b, c \in \mathbb{Z}.

Conditions for Yielding Solutions

Does a Diophantine equation equation always yield solutions? For example, does 8X+12Y=28X+12Y=2 have any solutions? Try substituting different values into the equation.

Why do the coefficients 88 and 1212 prevent the Diophantine equation 8X+12Y=28X+12Y=2 from having any solution? You may have noticed 88 and 1212 share a common factor of 44, while the right hand side is not divisible by 44. This means there cannot be any integer solutions if the right hand side is not divisible by the GCD of the coefficients on the left hand side.

Theorem: The linear Diophantine equation aX+bY=caX+bY=c has integer solutions if and only if gcd⁡(a,b)∣c\gcd(a,b) | c.

Spot the idea in disguise

In a contest problem, this idea hides inside a situation you have not seen before. Learning to spot it is the real skill. These are real problems from the AMC 8, AMC 10, AMC 12 and AIME, the national math competitions for middle and high school students, each with a worked solution on LIVE by Po-Shen Loh.

Interactive · 1 question

Why is 2\sqrt{2} irrational?

Suppose for the sake of contradiction that a2=2a^2=2 has a rational solution a=pqa=\frac{p}{q}. Let gcd⁡(p,q)=1\gcd(p,q)=1, so that the fraction is in lowest terms. Since it is a solution, p2q2=2\frac{p^2}{q^2}=2. Rearranging gives p2=2q2.p^2=2q^2. Since the right side is even, pp must be even. Thus, p=2kp=2k for some integer kk. Substituting this into our equation, we have 4k2=2q2  ⟹  2k2=q2.4k^2=2q^2\implies 2k^2=q^2.

What does this mean?

Choose one answer

Read · 1 min

Linear Diophantine Equations

Let a,b∈Za, b\in{Z}. The equation ax+by=cax + by = c has a solution (x,y)∈Z2(x,y) \in{Z^2} if and only if cc is a multiple of the gcd(a,b)gcd(a, b). The equation ax+by=cax + by = c is called a Linear Diophantine Equation.

Examples:

25x+16y=125x + 16y = 1 has a solution

50x+32y=250x + 32y = 2 has a solution

50x+32y=350x + 32y = 3 does not have a solution

Proof:

(⇒)(\Rightarrow) Suppose that ax+by=cax + by = c has a solution (x,y)∈Z2(x,y) \in{Z^2}. The gcd(a,b)gcd(a, b) will divide ax+byax + by and will therefore divide cc.

(⇐)(\Leftarrow)Suppose that the gcd(a,b)∣cgcd(a, b)\vert{c}. We need to prove that ax+by=cax + by = c has a solution. Note that agcd(a,b)\frac{a}{gcd(a, b)} and bgcd(a,b)\frac{b}{gcd(a, b)} are relatively prime integers. Thus, ∃m,n∈Z\exists m, n \in Z such that agcd(a,b)m+bgcd(a,b)n=1⇒am+bn=gcd(a,b)\frac{a}{gcd(a, b)}m + \frac{b}{gcd(a, b)}n = 1 \Rightarrow am + bn = gcd(a, b). Since the gcd(a,b)∣cgcd(a, b)\vert{c} and c=k⋅gcd(a,b)c = k \cdot gcd(a, b) where k∈Zk \in Z. a(km)+b(kn)=kgcd(a,b)⇒c=kgcd(a,b)a(km) + b(kn) = kgcd(a,b) \Rightarrow c = kgcd(a, b). Take x=kmx=km and y=kny=kn, then ax+by=cax + by = c.

Read · 1 min

Fermat's Last Theorem

Around 1637, Fermat famously wrote

It is impossible to separate a cube into two cubes, or a fourth power into two fourth powers, or in general, any power higher than the second, into two like powers. I have discovered a truly marvelous proof of this, which this margin is too narrow to contain.

In other words, Fermat claimed that the equation xn+yn=znx^n + y^n = z^n has no positive integer solutions for n≥3n \geq 3. Contrast with the case of squares: there are plenty of Pythagorean triples, or solutions to x2+y2=z2x^2 + y^2 = z^2 (like the famous 32+42=523^2 + 4^2 = 5^2).

Today this is known as Fermat's Last Theorem. But it is highly unlikely that Fermat actually proved his claim. Not until Sir Andrew Wiles published a proof in the 1990s (with the help of his former student Richard Taylor, and building upon countless recent technical advances in number theory) had anyone actually written down a formal proof. Nonetheless, some today (especially amateurs) are still looking for an "elementary" proof—one that would've been accessible in Fermat's time.

Interactive · 1 question

Square+Cube=Square!

How many integral triples(a,b,c) are there such that a^2+b^3=c^2?

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems