Discrete MathematicsDivisibility, Primes and Greatest Common Divisors3 of 6
Divisibility, Primes and Greatest Common Divisors · 3

Primes and the Fundamental Theorem of Arithmetic

When we build whole numbers by adding, every number breaks down into a pile of 11s, so we want to know what basic building blocks numbers are made of when we break them apart using multiplication instead.

Prime Factorizations and the Fundamental Theorem of Arithmetic
12=10+2\mathllap{12}=\mathrlap{10 + 2}
=6+6\mathllap{}=\mathrlap{6 + 6}
=7+5\mathllap{}=\mathrlap{7 + 5}

To find the multiplicative building blocks of a number like 6060, we split it into smaller factors until every branch reaches a number that cannot be broken down any further.

Text solution
Split composite numbers until every branch reaches a primeBreak 6060 into any factor pair bigger than 11, and keep splitting the composite pieces until only unbreakable primes remain:
60=6⏟composite×10⏟composite=2×3⏟primes×2×5⏟primes\displaystyle \begin{aligned}60 &= \underbrace{6}_{\text{composite}} \times \underbrace{10}_{\text{composite}} \\ &= \underbrace{\ptwo{2} \times \pthree{3}}_{\text{primes}} \times \underbrace{\ptwo{2} \times \pfive{5}}_{\text{primes}}\end{aligned}
Sort the prime blocks from smallest to largestGroup identical prime blocks together with exponents to write the unique prime factorization of 6060:
60=2×2×3×5=22×3×5\displaystyle \begin{aligned}60 &= \ptwo{2} \times \ptwo{2} \times \pthree{3} \times \pfive{5} \\ &= \ptwo{2^2} \times \pthree{3} \times \pfive{5}\end{aligned}

No matter which factor pair splits a composite number at each branch of a factor tree, the unbreakable prime leaves at the bottom always sort into the exact same row of prime blocks.

Splitting 90 any way you like changes the middle branches, but always leaves the exact same prime blocks at the bottom.

This gives us the core rule for how whole numbers are built by multiplication:

Fundamental Theorem of ArithmeticEvery whole number n>1 can bewritten as a product of primesin one unique way(up to the order of the factors).\displaystyle \begin{aligned} &\textbf{Fundamental Theorem of Arithmetic} \\ &\text{Every whole number } n > 1 \text{ can be} \\ &\text{written as a product of primes} \\ &\text{in one unique way} \\ &\text{(up to the order of the factors).} \end{aligned}
1

Proving Every Number Factors into Primes

Drawing factor trees for a few numbers makes it feel obvious that the branches always end at primes, so now we want to prove that every whole number n≥2n \ge 2 can be written as a product of primes.

When a composite number splits into n=a×b\target{n} = \assumed{a} \times \assumed{b}, the factors jump way down to smaller numbers like 6\assumed{6} and 10\assumed{10} rather than stepping back by one to n−1n - 1. That is why we use strong induction, where proving the statement for n\target{n} allows us to assume it already holds for every smaller number from 2\assumed{2} all the way up to n−1\assumed{n - 1}.

Proving Every Number Factors into Primes
6060
66
×\htmlClass{lc-mute}{\times}
1010
2\htmlClass{lc-blue}{2}
×\htmlClass{lc-mute}{\times}
3\htmlClass{lc-pink}{3}
2\htmlClass{lc-blue}{2}
×\htmlClass{lc-mute}{\times}
5\htmlClass{lc-violet}{5}
23456⋯10⋯585960\hspace{0.882em}\mathclap{2}\hspace{1.763em}\mathclap{3}\hspace{1.763em}\mathclap{4}\hspace{1.763em}\mathclap{5}\hspace{1.763em}\mathclap{6}\hspace{1.763em}\mathclap{\cdots}\hspace{1.763em}\mathclap{10}\hspace{1.763em}\mathclap{\cdots}\hspace{1.763em}\mathclap{58}\hspace{1.763em}\mathclap{59}\hspace{1.763em}\mathclap{60}

Strong induction turns the factor tree directly into a formal proof.

Text solution
Base case (n=2n = 2)The first whole number greater than 11 is already prime, so it is a product of a single prime:
n\displaystyle n =2(prime)\displaystyle = 2 \quad (\text{prime})
Inductive hypothesis (2\assumed{2} to n−1\assumed{n - 1})For a whole number n>2\target{n} > 2, assume every whole number k\assumed{k} with 2≤k≤n−1\assumed{2 \le k \le n - 1} can be written as a product of primes.
Split n\target{n} into prime and composite casesIf n\target{n} is prime, it is already a product of one prime; if n\target{n} is composite, split it into two smaller factors a\assumed{a} and b\assumed{b} and multiply their prime factorizations together:
n=a⏟2≤a<n×b⏟2≤b<n=(primes of a)×(primes of b)\displaystyle \begin{aligned}\target{n} &= \underbrace{\assumed{a}}_{2 \le \assumed{a} < \target{n}} \times \underbrace{\assumed{b}}_{2 \le \assumed{b} < \target{n}} \\ &= \assumed{(\text{primes of } a)} \times \assumed{(\text{primes of } b)}\end{aligned}
2

Testing for Primes with the Square Root Bound

Now that we know every number is built from primes, we need a fast way to tell whether a larger number like 143143 or 137137 is prime or composite without dividing by every number up to n−1n - 1.

Testing for Primes with the Square Root Bound
143143
137137
2?    3?    4?    5?    ⋯    136?2?\;\;3?\;\;4?\;\;5?\;\;\cdots\;\;136?
≤6    ×    ≥6\mathllap{\le 6\;\;}\phantom{\times}\mathrlap{\;\;\ge 6}
1  ×  36\mathllap{1\;}\times\mathrlap{\;36}
2  ×  18\mathllap{2\;}\times\mathrlap{\;18}
3  ×  12\mathllap{3\;}\times\mathrlap{\;12}
4  ×  9\mathllap{4\;}\times\mathrlap{\;9}
6  ×  6=36×36\mathllap{6\;}\times\mathrlap{\;6 = \sqrt{36} \times \sqrt{36}}
9  ×  4\mathllap{9\;}\times\mathrlap{\;4}
12  ×  3\mathllap{12\;}\times\mathrlap{\;3}
18  ×  2\mathllap{18\;}\times\mathrlap{\;2}
36  ×  1\mathllap{36\;}\times\mathrlap{\;1}
≥6    ×    ≤6\mathllap{\ge 6\;\;}\phantom{\times}\mathrlap{\;\;\le 6}

Because factors come in pairs that balance around n\sqrt{n}, any composite number n=a×bn = a \times b must have at least one factor less than or equal to n\sqrt{n}, and that factor itself is built out of primes:

To test if n is prime,only test prime divisors p≤n.\displaystyle \begin{aligned}&\text{To test if } n \text{ is prime,} \\ &\text{only test prime divisors } p \le \sqrt{n}.\end{aligned}

Here is how the square root bound checks 143143 and 137137 in just five steps.

Text solution
Find the primes up to n\sqrt{n}Because 122=14412^2 = 144, both 143\sqrt{143} and 137\sqrt{137} are under 1212, leaving only five primes to test:
Primes ≤143<12:2,3,5,7,11\displaystyle \begin{aligned}&\text{Primes } \le \sqrt{143} < 12: \\ &2, 3, 5, 7, 11\end{aligned}
Test 143143 up to 1111The primes 2,3,5,2, 3, 5, and 77 leave remainders, while 11\holds{11} divides evenly and gives us its partner 13\holds{13} above the square root:
143=110+33=11×10+11×3=11×13(composite)\displaystyle \begin{aligned}143 &= 110 + 33 \\ &= 11 \times 10 + 11 \times 3 \\ &= \holds{11 \times 13} \quad (\text{composite})\end{aligned}
Test 137137 up to 1111Every prime up to 1111 leaves a remainder, so no larger factor can have a partner below 137\sqrt{137}:
137=7×20−3=11×12+5(prime)\displaystyle \begin{aligned}137 &= 7 \times 20 - \fails{3} \\ &= 11 \times 12 + \fails{5} \quad (\text{prime})\end{aligned}
3

Divisibility and Euclid's Lemma

Writing numbers as piles of prime blocks turns division into counting blocks, which lets us answer when a divisor of a product a×ba \times b is forced to divide aa or bb individually.

Divisibility and Euclid's Lemma
60=\mathllap{60}=\mathrlap{}
2\htmlClass{lc-blue}{2}
×\times
2\htmlClass{lc-blue}{2}
×\times
3\htmlClass{lc-pink}{3}
×\times
5\htmlClass{lc-violet}{5}
12∣60  ?12 \mid 60\;?

Comparing prime piles shows immediately why a prime divisor behaves differently from a composite divisor when dividing a product.

Text solution
Pull out matching blocks to check divisibilityBecause 12=2×2×312 = \ptwo{2} \times \ptwo{2} \times \pthree{3} sits inside 6060's prime pile {2,2,3,5}\{\ptwo{2}, \ptwo{2}, \pthree{3}, \pfive{5}\}, pulling those blocks out leaves the quotient 5\holds{5}, whereas 8=2×2×28 = \ptwo{2} \times \ptwo{2} \times \ptwo{2} needs three 2\ptwo{2}s and cannot divide 6060:
60÷12=2×2×3⏞12×52×2×3=5,2×2×2⏟8 (three 2s)∤2×2×3×5⏟60 (only two 2s)\displaystyle \begin{gathered}60 \div 12 = \frac{\overbrace{\ptwo{2} \times \ptwo{2} \times \pthree{3}}^{12} \times \pfive{5}}{\ptwo{2} \times \ptwo{2} \times \pthree{3}} = \holds{5}, \\ \underbrace{\ptwo{2} \times \ptwo{2} \times \ptwo{2}}_{8 \text{ (three 2s)}} \fails{{}\nmid{}} \underbrace{\ptwo{2} \times \ptwo{2} \times \pthree{3} \times \pfive{5}}_{60 \text{ (only two 2s)}}\end{gathered}
Use Euclid's Lemma for a prime divisorBecause 77 is a single unbreakable prime block, it cannot split across 1515 and xx:
7∣(15×x)and7∤15  ⟹  7∣x\displaystyle \begin{aligned}&7 \mid (15 \times x) \quad\text{and}\quad 7 \fails{{}\nmid{}} 15 \\ &\implies \holds{7 \mid x}\end{aligned}
Split blocks across factors for a composite divisorBecause 6=2×36 = \ptwo{2} \times \pthree{3} is composite and 15=3×515 = \pthree{3} \times \pfive{5} already supplies the 3\pthree{3}, xx only needs to supply the 2\ptwo{2}:
15×x=(3×5)×2=30=6×5(so x=2 workseven though 6∤2)\displaystyle \begin{aligned}15 \times x &= (\pthree{3} \times \pfive{5}) \times \ptwo{2} \\ &= 30 = 6 \times 5 \\ &\quad (\text{so } x = \ptwo{2} \text{ works} \\ &\quad \text{even though } 6 \fails{{}\nmid{}} \ptwo{2})\end{aligned}

Whenever the divisor is a prime number pp, it cannot split its pieces across two factors:

Euclid’s Lemma: If p is prime and p∣(a×b),then p∣a or p∣b.\displaystyle \begin{aligned}&\textbf{Euclid's Lemma: } \\ &\text{If } p \text{ is prime and } p \mid (a \times b), \\ &\text{then } \holds{p \mid a} \text{ or } \holds{p \mid b}.\end{aligned}

When you move prime blocks between the two piles aa and bb without changing the combined pile a×ba \times b, a composite divisor like 6=2×36 = \ptwo{2} \times \pthree{3} can split its blocks across both piles so it divides a×ba \times b without dividing aa or bb. A prime divisor like 5\pfive{5} is a single block, so it always sits entirely in aa or entirely in bb.

A composite divisor of a product can split its prime pieces between the two factors, while a prime divisor is a single block that always sits entirely in one factor or the other.
4

Prime Factors of Squares and the Irrationality of 2\sqrt{2}

Next, we want to see what happens to a number's prime blocks when we square it, and use that count to prove that 2\sqrt{2} is irrational (cannot be written as a fraction ab\frac{a}{b} of whole numbers).

Prime Factors of Squares and the Irrationality of √2
6=\mathllap{6}=\mathrlap{}
2\htmlClass{lc-blue}{2}
×\times
3\htmlClass{lc-pink}{3}
6×6=36\mathllap{6 \times 6}=\mathrlap{36}
=\mathllap{}=\mathrlap{}
2\htmlClass{lc-blue}{2}
×\times
3\htmlClass{lc-pink}{3}
×\times
2\htmlClass{lc-blue}{2}
×\times
3\htmlClass{lc-pink}{3}

Counting the prime block 2\ptwo{2} on each side shows why no fraction of whole numbers can ever square to 22.

Text solution
Square the fraction and clear the denominatorSuppose for contradiction that 2=ab\sqrt{2} = \frac{a}{b} for positive whole numbers aa and bb, and rewrite the equation with whole-number squares:
2=ab  ⟹  2=a2b2  ⟹  a2=2×b2\displaystyle \begin{aligned}\sqrt{2} = \frac{a}{b} &\implies \ptwo{2} = \frac{a^2}{b^2} \\ &\implies a^2 = \ptwo{2} \times b^2\end{aligned}
Compare the count of 2\ptwo{2}s on each sideSquaring doubles every prime pile, so a2a^2 and b2b^2 each have an even number of 2\ptwo{2}s, while the extra 2\ptwo{2} out front makes the count on the right side odd:
a2⏟even number of 2s\displaystyle \underbrace{a^2}_{\holds{\text{even number of 2s}}} =2×b2⏞even number of 2s⏟odd number of 2s\displaystyle = \underbrace{\ptwo{2} \times \overbrace{b^2}^{\holds{\text{even number of 2s}}}}_{\fails{\text{odd number of 2s}}}
Reach the contradiction via unique factorizationBy the Fundamental Theorem of Arithmetic, the same number cannot have both an even number of 2\ptwo{2}s and an odd number of 2\ptwo{2}s in its unique prime factorization, so 2\sqrt{2} is irrational.
5

Infinitely Many Primes

Finally, we want to know whether the prime numbers eventually run out as numbers get huge, or whether there are infinitely many primes.

Remember from the division algorithm that if you take an exact multiple of a number pp and add 1\fails{1}, the result p×q+1p \times q + \fails{1} leaves a remainder of 1\fails{1} when divided by pp, so pp cannot divide it evenly.

Infinitely Many Primes
118 elements\htmlClass{lc-green}{118}\text{ elements}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-pink}{3}
5\htmlClass{lc-violet}{5}
77
1111
⋯\cdots
??

Euclid's construction uses that remainder of 1\fails{1} to show that any finite list of primes is missing at least one prime.

Text solution
Multiply the entire list of primes and add 1\fails{1}Given any finite list of primes p1,p2,…,pkp_1, p_2, \dots, p_k, build the number NN by adding 1\fails{1} to their product:
N\displaystyle N =(p1×p2×⋯×pk)+1\displaystyle = (p_1 \times p_2 \times \dots \times p_k) + \fails{1}
Check the remainder for every prime on the listDividing NN by any prime pip_i on the list leaves a remainder of 1\fails{1}, so no prime on the list divides NN:
N=pi×(product of theother primes)+1⏟remainder ≠0  ⟹  pi∤N\displaystyle \begin{aligned}N &= p_i \times (\text{product of the} \\ &\qquad \text{other primes}) + \underbrace{\fails{1}}_{\text{remainder } \ne 0} \\ &\implies p_i \fails{{}\nmid{}} N\end{aligned}
Factor NN into primesBecause N>1N > 1, it must have at least one prime factor, and since none of p1,…,pkp_1, \dots, p_k divide NN, that prime factor must be a brand-new prime missing from the list.

Be careful not to write that N=(p1×⋯×pk)+1N = (p_1 \times \dots \times p_k) + \fails{1} is automatically prime itself: for the first six primes, 2×3×5×7×11×13+1=30,031\ptwo{2} \times \pthree{3} \times \pfive{5} \times 7 \times 11 \times 13 + \fails{1} = 30{,}031 =59×509= 59 \times 509 is composite, and the new primes are its prime factors 5959 and 509509.

Key concepts

Unique prime piles (Fundamental Theorem of Arithmetic)

Every whole number n≥2n \ge 2 breaks down into one unique pile of primes (60=22×3×560 = \ptwo{2^2} \times \pthree{3} \times \pfive{5}). To check if d∣nd \mid n, compare their prime piles to see if dd's blocks sit inside nn's pile (12=22×312 = \ptwo{2^2} \times \pthree{3} sits inside 6060, while 8=238 = \ptwo{2^3} does not because 6060 only has two 2\ptwo{2}s). When proving a property of factor trees for all n≥2n \ge 2, use strong induction rather than regular induction because splitting n=a×b\target{n} = \assumed{a} \times \assumed{b} jumps down to smaller factors rather than n−1n - 1.

Testing if nn is prime (Square root bound)

Only test prime divisors p≤np \le \sqrt{n} (for 137<122137 < 12^2, test only 2,3,5,7,112, 3, 5, 7, 11). Skip composite numbers below n\sqrt{n} because their prime blocks were already tested, and stop at n\sqrt{n} because any larger factor would need a partner below n\sqrt{n}.

Dividing a product a×ba \times b (Euclid's Lemma)

Check whether the divisor is prime before splitting across a product. If pp is prime and p∣(a×b)p \mid (a \times b), then p∣a\holds{p \mid a} or p∣b\holds{p \mid b} (7∣15x  ⟹  7∣x7 \mid 15x \implies \holds{7 \mid x}). Do not apply Euclid's Lemma to a composite divisor: 6∣15x6 \mid 15x does not force 6∣x6 \mid x, because 6=2×36 = \ptwo{2} \times \pthree{3} can take its 3\pthree{3} from 1515 and only needs x=2x = \ptwo{2}.

Squares and irrational roots (Even vs. odd prime counts)

Every perfect square has an even number of every prime block (122=24×3212^2 = \ptwo{2^4} \times \pthree{3^2}). To prove a root is irrational, clear the denominator (2=ab\sqrt{2} = \frac{a}{b}   ⟹  \implies a2=2b2a^2 = \ptwo{2}b^2) and pick a prime whose count is even on one side and odd on the other.

Finding missing primes (Euclid's construction)

From any finite list of primes p1,…,pkp_1, \dots, p_k, form N=(p1×⋯×pk)+1N = (p_1 \times \dots \times p_k) + \fails{1} so every pip_i leaves remainder 1\fails{1}; then take a prime factor of NN rather than assuming NN itself is prime (30,030+1=30,031=59×50930{,}030 + \fails{1} = 30{,}031 = 59 \times 509).

6

Practice

1

Find the prime factorization of 252252. Then, by comparing piles of prime blocks, determine whether 1818 divides 252252 and whether 2424 divides 252252, and give the quotient whenever the division is even.

Break 252252, 1818, and 2424 into their prime piles, and check whether 252252 has enough copies of each prime block to pull out 1818 or 2424.

Breaking 252252 down gives:
252=2×2×3×3×7=22×32×7\displaystyle \begin{aligned}252 &= \ptwo{2} \times \ptwo{2} \times \pthree{3} \times \pthree{3} \times 7 \\ &= \ptwo{2^2} \times \pthree{3^2} \times 7\end{aligned}
For 18=2×3×318 = \ptwo{2} \times \pthree{3} \times \pthree{3}, its prime blocks {2,3,3}\{\ptwo{2}, \pthree{3}, \pthree{3}\} sit inside 252252's pile {2,2,3,3,7}\{\ptwo{2}, \ptwo{2}, \pthree{3}, \pthree{3}, 7\}. Pulling {2,3,3}\{\ptwo{2}, \pthree{3}, \pthree{3}\} out leaves {2,7}\{\ptwo{2}, 7\} (be careful not to drop the second 2\ptwo{2} when crossing out the single 2\ptwo{2} from 1818, which would give the wrong quotient 77). Multiplying the remaining blocks shows that 1818 divides 252252 with quotient 2×7=14\ptwo{2} \times 7 = \holds{14}.
For 24=2×2×2×324 = \ptwo{2} \times \ptwo{2} \times \ptwo{2} \times \pthree{3}, do not just check that the distinct primes 2\ptwo{2} and 3\pthree{3} appear in 252252; you must compare how many of each block are required. Because 2424 requires three 2\ptwo{2}s and 252252 only has two 2\ptwo{2}s, 2424 does not divide 252252.
2

Determine whether 179179 and 221221 are prime or composite by testing only prime divisors up to the square root bound. State which primes must be tested for each number.

Compare 179179 and 221221 to nearby perfect squares like 132=16913^2 = 169, 142=19614^2 = 196, and 152=22515^2 = 225 to find the largest prime you need to test.

For 179179, since 132=16913^2 = 169 and 142=19614^2 = 196, we have 179<14\sqrt{179} < 14, so we only test the primes 2,3,5,7,11,2, 3, 5, 7, 11, and 1313. None of them divide 179179 (179179 is odd; 1+7+9=171 + 7 + 9 = 17; it does not end in 00 or 55; 179=7×25+4179 = 7 \times 25 + \fails{4}; 179=11×16+3179 = 11 \times 16 + \fails{3}; 179=13×13+10179 = 13 \times 13 + \fails{10}), so 179179 is prime.
For 221221, since 142=19614^2 = 196 and 152=22515^2 = 225, we have 221<15\sqrt{221} < 15, so we test the same primes 2,3,5,7,11,2, 3, 5, 7, 11, and 1313 (do not stop at 1111 after testing the easier primes, or you will falsely mark 221221 as prime). Checking 2,3,5,7,2, 3, 5, 7, and 1111 leaves non-zero remainders, but 221=130+91=13×17221 = 130 + 91 = \holds{13 \times 17}, so 221221 is composite.
3

Find the smallest positive whole number kk such that 504×k504 \times k is a perfect square, and use prime blocks to find the square root of 504×k504 \times k.

Factor 504504 into primes and see which prime blocks appear an odd number of times.

Factoring 504504 gives:
504=8×63=23×32×71\displaystyle \begin{aligned}504 &= 8 \times 63 \\ &= \ptwo{2^3} \times \pthree{3^2} \times 7^1\end{aligned}
A perfect square must have an even number of every prime block. In 504504, the count of 3\pthree{3}s is already even (two 3\pthree{3}s), while the counts of 2\ptwo{2}s (three 2\ptwo{2}s) and 77s (one 77) are odd. Do not include a 3\pthree{3} in kk just because 3\pthree{3} is one of the prime factors of 504504 (multiplying by 2×3×7=42\ptwo{2} \times \pthree{3} \times 7 = 42 would turn 32\pthree{3^2} into 33\pthree{3^3} and ruin the square). To make every count even with the smallest multiplier, kk only supplies one 2\ptwo{2} and one 77, so k=2×7=14k = \ptwo{2} \times 7 = 14.
Then 504×14=24×32×72504 \times 14 = \ptwo{2^4} \times \pthree{3^2} \times 7^2. Splitting the prime blocks into two identical halves divides each exponent by 22 (giving 22=4\ptwo{2^2} = 4, not a single 2\ptwo{2} which would give 4242), so 504×14=22×3×7=84\sqrt{504 \times 14} = \ptwo{2^2} \times \pthree{3} \times 7 = 84.
4

Let xx be a positive whole number. (a) If 1111 divides 24x24x, must 1111 divide xx? Explain why or give a counterexample. (b) If 1212 divides 18x18x, must 1212 divide xx? If not, find the smallest positive whole number xx for which 1212 divides 18x18x.

Check whether the divisor is prime or composite before deciding if its prime blocks can split between the two factors.

(a) Yes. Because 1111 is prime and 11∣(24×x)11 \mid (24 \times x), Euclid's Lemma guarantees that 11∣2411 \mid 24 or 11∣x11 \mid x. Since 1111 does not divide 2424, 1111 must divide xx.
(b) No. Do not apply Euclid's Lemma to 1212 and conclude from 12∤1812 \fails{{}\nmid{}} 18 that 12∣x12 \mid x (which gives the wrong minimum x=12x = 12), because 12=22×312 = \ptwo{2^2} \times \pthree{3} is composite and can split its prime blocks between 1818 and xx. Since 18=2×3218 = \ptwo{2} \times \pthree{3^2} already supplies one 2\ptwo{2} and one 3\pthree{3}, xx only needs to supply one more 2\ptwo{2}, so the smallest such positive whole number is x=2x = \ptwo{2}.
5

Suppose someone claims that {3,5,7}\{3, 5, 7\} is a complete list of all prime numbers, and you apply Euclid's construction N=(3×5×7)+1N = (3 \times 5 \times 7) + 1. Is NN prime or composite? Find the prime factorization of NN and explain why none of its prime factors are in {3,5,7}\{3, 5, 7\}.

Compute NN first and check if it is even before deciding whether NN itself is prime.

Multiplying the list and adding 1\fails{1} gives N=105+1=106N = 105 + \fails{1} = 106. Do not assume NN is prime just because it came from Euclid's formula (p1×⋯×pk)+1(p_1 \times \dots \times p_k) + \fails{1}: 106106 is even, so it is composite and factors into primes as 106=2×53106 = \ptwo{2} \times 53. Because 106=3×35+1=5×21+1=7×15+1106 = \pthree{3} \times 35 + \fails{1} = \pfive{5} \times 21 + \fails{1} = 7 \times 15 + \fails{1} leaves a remainder of 1\fails{1} when divided by 3,5,\pthree{3}, \pfive{5}, or 77, none of the primes in {3,5,7}\{\pthree{3}, \pfive{5}, 7\} divide 106106, which forces its prime factors 2\ptwo{2} and 5353 to be primes missing from {3,5,7}\{\pthree{3}, \pfive{5}, 7\}.
6

Prove by contradiction that 12\sqrt{12} is irrational by counting prime blocks.

Factor 1212 into primes in the equation a2=12b2a^2 = 12b^2, and look for a prime block in 1212 that appears an odd number of times.

Suppose, for the sake of contradiction, that 12=ab\sqrt{12} = \frac{a}{b} for some positive whole numbers aa and bb. Squaring both sides and multiplying by b2b^2 gives:
a2\displaystyle a^2 =12b2\displaystyle = 12b^2 =22×3×b2\displaystyle = \ptwo{2^2} \times \pthree{3} \times b^2
Every perfect square has an even number of every prime in its prime factorization. Notice that counting 2\ptwo{2}s will not give a contradiction here, because 1212 already has two 2\ptwo{2}s, leaving an even number of 2\ptwo{2}s on both sides; instead, count the prime 3\pthree{3}. Both a2a^2 and b2b^2 have an even number of 3\pthree{3}s, and multiplying b2b^2 by 22×3\ptwo{2^2} \times \pthree{3} adds one extra 3\pthree{3}, so the right side 22×3×b2\ptwo{2^2} \times \pthree{3} \times b^2 has an odd number of 3\pthree{3}s. By the Fundamental Theorem of Arithmetic, the same number cannot have both an even number of 3\pthree{3}s (on the left) and an odd number of 3\pthree{3}s (on the right) in its unique prime factorization. This contradiction proves that 12\sqrt{12} is irrational.
7

Each time you branch a composite number in a factor tree into two smaller factors, call that one split. Prove by strong induction on k≥1k \ge 1 that any factor tree that breaks a number down into kk prime blocks at the bottom uses exactly k−1k - 1 splits, no matter which splits are chosen.

After the starting number splits once into two branches with jj prime blocks and k−jk - j prime blocks, add that first split to the splits used inside each branch.

Base case (k=1k = 1): A factor tree ending in 11 prime block starts with a prime number, which cannot be split, so it uses 0=1−10 = 1 - 1 splits.
Inductive stepLet k>1k > 1, and assume by strong induction that for every whole number j\assumed{j} with 1≤j<k\assumed{1 \le j < k}, any factor tree ending in j\assumed{j} prime blocks uses j−1\assumed{j - 1} splits (regular induction assuming only k−1k - 1 is not enough, because the first split can divide the kk primes into two subtrees of any sizes jj and k−jk - j). Consider a factor tree for a number nn that ends in kk prime blocks. Since k>1k > 1, nn is composite and first splits into two factors aa and bb (1\holds{1} split). Suppose the subtree under aa ends in jj prime blocks and the subtree under bb ends in the remaining k−jk - j prime blocks. Because a≥2a \ge 2 and b≥2b \ge 2, each subtree has at least 11 prime block, so 1≤j<k1 \le j < k and 1≤k−j<k1 \le k - j < k. By the strong induction assumption, aa's subtree uses j−1\assumed{j - 1} splits and bb's subtree uses (k−j)−1\assumed{(k - j) - 1} splits. Adding the initial split of nn into aa and bb (do not forget to add this 1\holds{1}, or the sum comes out to k−2k - 2) gives 1+(j−1)+(k−j−1)=k−1\holds{1} + \assumed{(j - 1)} + \assumed{(k - j - 1)} = \target{k - 1} splits.