Suppose the primes p1,…,pk were all there are — the chips show the list, P=p1⋯pk, and N=P+1. N is divisible by no prime on the list (remainder 1) yet has a prime factor, and that factor is off the list — a contradiction. At k=6, N=30031=59×509 is composite and the proof still stands, teaching the shape of contradiction (assume ¬P → contradiction → P).
N=p1p2⋯pk+1≡1(modpi)
¬P⇒⊥⊢P
30031=59×509
Examples & Exercises
Prove Euclid's theorem completely: there are infinitely many primes. Use proof by contradiction — assume p1,…,pk are all the primes, and show that N=p1⋯pk+1 (i) has a prime factor, since N≥2, and (ii) that this factor cannot equal any pi, deriving a contradiction. In particular, address the subtlety that N itself need not be prime (for k=6, N=30031=59×509).
N=p1p2⋯pk+1,N≡1(modpi)for all i
k=6:N=30031=59×509
k=6: P=30030, N=30031=59×509 — N is composite, but its prime factors 59 and 509 are new primes off the list {2,3,5,7,11,13}.Show proof
We argue by contradiction. Suppose there are only finitely many primes — a complete list p1,…,pk (k≥1). Put P=p1⋯pk and N=P+1; then N≥3≥2.
Lemma: every integer ≥2 has a prime factor. Proof (strong induction): for n=2, n itself is prime. For n>2, either n is prime or n=ab with 1<a,b<n; in the composite case the induction hypothesis gives a a prime factor q, and q∣a∣n, so q is a prime factor of n. Applying this to N yields a prime factor q of N.
q differs from every pi. Indeed, pi∣P for each i, so N=P+1≡1(modpi): no pi divides N. But q∣N, hence q=pi for every i. So q is a prime missing from the supposedly complete list — a contradiction. Hence there are infinitely many primes. ∎
The subtlety: N itself need not be prime. For k=6, P=2⋅3⋅5⋅7⋅11⋅13=30030 and N=30031=59×509 is composite. The proof is unaffected — its claim is "\emph{every} prime factor of N is new", not "N is a new prime". The proof does pin down that a new prime is among the factors of N, but identifying it requires factoring N.
Prove by contradiction that log25 is irrational. Hint: if log25=qp with p,q positive integers, then 2p=5q — the left side is even and the right side is odd.
log25=qp⇒5=2p/q⇒5q=2p
2p is even (p≥1),5q is odd
The scene preset is the default k=4 (P=210, N=211) — this problem is about the shape of proof by contradiction itself, not the scene's numbers.Show proof
We argue by contradiction. Suppose log25 is rational. Since log25>log24=2>0, we can write log25=qp with p,q positive integers — in particular p≥1.
By the definition of the logarithm, 5=2p/q, and raising both sides to the power q gives 5q=2p. But p≥1 makes 2p=2⋅2p−1 even, while 5q, a product of odd numbers, is odd. An even number cannot equal an odd number — a contradiction. Hence log25 is irrational. ∎
Note: there is no need to put qp in lowest terms — the parity argument alone suffices. The deeper reason is the fundamental theorem of arithmetic (unique prime factorization): 2p has only the prime factor 2 and 5q only the prime factor 5, so the two powers with positive exponents can never agree.
Prove by contradiction: if r is rational and x is irrational, then r+x is irrational.
r+x=s∈Q⇒x=s−r∈Q
The scene preset is the default k=4 (P=210, N=211) — this problem is about the shape of proof by contradiction itself, not the scene's numbers.Show proof
We argue by contradiction. Suppose r+x is rational, and put s=r+x∈Q. Then x=s−r.
A difference of rationals is rational: if r=ba and s=dc (with a,c∈Z, b,d∈Z, b,d=0), then x=s−r=bdcb−ad, and cb−ad∈Z with bd=0, so x∈Q.
This contradicts the assumption that x is irrational. Hence r+x cannot be rational — it is irrational. ∎ (The same argument shows rx is irrational for rational r=0 and irrational x: if rx=s then x=s/r is a quotient of rationals.)