Independent study guide

Algebra and proof practice: six original exercises

Choose a proof or algebra method, work through gcd and Bézout identities, integer equations, congruences and complex roots, then check six original exercises with complete solutions.

Nablio · 6 questionsPublished

Practise induction, greatest common divisors and Bézout identities, integer equations, congruences, and complex roots. Review the worked examples, then try six exercises written by Nablio. Each exercise has a full solution and a suggested marking guide.

How to choose a method

  • A statement is indexed by every integer n starting at a fixed value: consider induction. First see whether a direct proof is simpler.
  • You need gcd⁡(a,b)\gcd(a,b), or integers u and v with au+bv=gcd⁡(a,b)au+bv=\gcd(a,b): use the Euclidean algorithm and back-substitution.
  • You need all integer solutions of ax+by=cax+by=c: check the gcd divisibility condition before searching for solutions.
  • You need a remainder or a congruence solution: reduce modulo m; check invertibility before dividing.
  • You need a complex quotient: multiply by the denominator's conjugate. For powers or roots, polar form is often simpler.

Throughout, integers are elements of Z\mathbb{Z}. The notation a∣ba \mid b means b=akb=ak for some integer k. Congruences use a positive integer modulus greater than 1.

1 Proving a statement by induction

To prove P(n)P(n) for all integers n≥n0n\ge n_{0}, establish P(n0)P(n_{0}), then show that P(k)P(k) implies P(k+1)P(k+1) for an arbitrary integer k≥n0k\ge n_{0}. The induction hypothesis is an assumption used inside that implication; it is not permission to assume the conclusion.

For a complete worked proof, review the induction method, then check the starting index and base case.

Check your proof. Did you name the starting value, state the hypothesis, use it, and finish with the exact expression required at k+1k+1? Checking several numerical cases is useful for spotting errors, but does not prove a statement for infinitely many n.

2 Greatest common divisors and Bézout identities

For integers a,ba,b not both zero, gcd⁡(a,b)\gcd(a,b) is their greatest positive common divisor. Bézout's identity states that there are integers u,vu,v such that au+bv=gcd⁡(a,b)au+bv=\gcd(a,b).

The Euclidean algorithm works because a=qb+ra=qb+r implies gcd⁡(a,b)=gcd⁡(b,r)\gcd(a,b)=\gcd(b,r): a divisor of both a and b divides r=a−qbr=a-qb, and a divisor of both b and r divides a=qb+ra=qb+r.

Worked example

Find gcd⁡(252,198)\gcd(252,198) and a Bézout identity:

252=198+54198=3×54+3654=36+1836=2×18.\begin{gathered}252=198+54\\198=3\times54+36\\54=36+18\\36=2\times18.\end{gathered}

The last nonzero remainder is 18. Back-substitute:

18=54−36=54−(198−3×54)=4×54−198=4(252−198)−198=4×252−5×198.\begin{gathered}18=54-36\\=54-(198-3\times54)\\=4\times54-198\\=4(252-198)-198\\=4\times252-5\times198.\end{gathered}

Thus gcd⁡(252,198)=18\gcd(252,198)=18, with u=4u=4 and v=−5v=-5. The final equality also gives a quick arithmetic check: 1008−990=181008-990=18.

3 Linear Diophantine equations

A linear Diophantine equation ax+by=cax+by=c asks for integer solutions x,yx,y. For positive integers a,ba,b, let d=gcd⁡(a,b)d=\gcd(a,b). Solutions exist exactly when d∣cd \mid c.

Why the condition is necessary. Since d divides a and b, it divides every integer combination ax+byax+by, hence must divide c.

Why it is sufficient. A Bézout identity au+bv=dau+bv=d, multiplied by c/dc/d, gives a solution when d∣cd \mid c.

From one solution (x0,y0)(x_{0},y_{0}), every solution is

x=x0+bdt,y=y0−adt,t∈Z.\begin{gathered}x=x_0+\frac{b}{d}t,\\y=y_0-\frac{a}{d}t,\\t\in\mathbb{Z}.\end{gathered}

To see completeness, subtract the equations for two solutions and divide by d. The resulting coprime coefficients imply that b/db/d divides x−x0x-x_{0}; substituting this difference forces the stated change in y.

Worked example

Solve 14x+21y=3514x+21y=35. Here d=7d=7 divides 35. Divide by 7 to obtain 2x+3y=52x+3y=5. One solution is (1,1)(1,1), so all solutions are

x=1+3t,y=1−2t,t∈Z.\begin{gathered}x=1+3t,\qquad y=1-2t,\\t\in\mathbb{Z}.\end{gathered}

Substitution gives 2(1+3t)+3(1−2t)=52(1+3t)+3(1-2t)=5. If x and y must also be nonnegative, the inequalities t≥−1/3t\ge -1/3 and t≤1/2t\le 1/2 leave only t=0t=0. The only nonnegative solution is (1,1)(1,1).

4 Congruences and legitimate cancellation

The statement a≡b(modm)a\equiv b \pmod{m} means m∣(a−b)m \mid (a-b). Addition and multiplication preserve congruences. Division needs care: a has a multiplicative inverse modulo m exactly when gcd⁡(a,m)=1\gcd(a,m)=1.

More generally, ax≡b(modm)ax\equiv b \pmod{m} has a solution exactly when gcd⁡(a,m)\gcd(a,m) divides b. If d=gcd⁡(a,m)d=\gcd(a,m) divides b and d=md=m, every integer x is a solution. If d divides b and d<md<m, divide a,ba,b and m by d to get an equivalent congruence modulo m/d>1m/d>1. Keeping the original modulus after cancellation can lose solutions.

Worked example

Solve 7x≡5(mod12)7x\equiv 5 \pmod{12}. Since 7×7=49≡1(mod12)7\times 7=49\equiv 1 \pmod{12}, multiply by 7:

x≡35≡11(mod12).x\equiv35\equiv11\pmod{12}.

Check: 7×11−5=727\times 11-5=72, a multiple of 12. All integer solutions are x=11+12tx=11+12t, t∈Zt\in \mathbb{Z}.

Cancellation warning. From 2x≡2(mod6)2x\equiv 2 \pmod{6}, the correct reduced statement is x≡1(mod3)x\equiv 1 \pmod{3}. Modulo 6 this gives two residues, 1 and 4. Writing only x≡1(mod6)x\equiv 1 \pmod{6} misses a solution.

5 Complex arithmetic and roots

A complex number is z=a+biz=a+bi with a,ba,b real and i2=−1i^{2}=-1. Its conjugate is z‾=a−bi\overline{z}=a-bi and its modulus is ∣z∣=a2+b2\lvert z\rvert=\sqrt{a^2+b^2}. Thus zz‾=∣z∣2z\overline{z}=\lvert z\rvert^2.

For powers and roots, review Cartesian and polar forms, De Moivre’s formula and how to find every root. Use those methods in Exercise 6 below.

Worked example

Simplify (2−i)/(1+i)(2-i)/(1+i). Multiply numerator and denominator by 1−i1-i:

(2−i)(1−i)(1+i)(1−i)=1−3i2=12−32i.\begin{gathered}\frac{(2-i)(1-i)}{(1+i)(1-i)}\\=\frac{1-3i}{2}\\=\frac12-\frac32i.\end{gathered}

Check by multiplying the answer by 1+i1+i; it returns 2−i2-i. For roots, also check that you have the required number of distinct answers and that each has the correct modulus.

Six original practice exercises

Try these before reading the solutions. The points are a suggested self-assessment rubric, not an official Waterloo grading scheme.

Exercise 1 Foundation induction · 4 points

Prove by induction that 3∣(4n−1)3 \mid (4^{n}-1) for every integer n≥0n\ge 0.

Show solution 1 and scoring

At n=0n=0, 40−1=04^{0}-1=0, which is divisible by 3. Suppose 4k−1=3q4^{k}-1=3q for some integer q and arbitrary k≥0k\ge 0. Then

4k+1−1=4(4k−1)+3=12q+3=3(4q+1).\begin{gathered}4^{k+1}-1=4(4^k-1)+3\\=12q+3\\=3(4q+1).\end{gathered}

Since 4q+14q+1 is an integer, divisibility holds at k+1k+1. Induction proves the claim for every n≥0n\ge 0.

Scoring: base case 1; explicit hypothesis 1; correct step 1; conclusion and domain 1.

Exercise 2 Induction with algebra · 5 points

Prove by induction that, for every integer n≥1n\ge 1,

∑k=1nk(k+1)=n(n+1)(n+2)3.\begin{gathered}\sum_{k=1}^{n}k(k+1)\\=\frac{n(n+1)(n+2)}{3}.\end{gathered}
Show solution 2 and scoring

At n=1n=1, both sides equal 2. Assume the formula holds at an arbitrary n=k≥1n=k\ge 1. Then

∑j=1k+1j(j+1)=k(k+1)(k+2)3+(k+1)(k+2)=(k+1)(k+2)(k3+1)=(k+1)(k+2)(k+3)3.\begin{gathered}\sum_{j=1}^{k+1}j(j+1)\\=\frac{k(k+1)(k+2)}3\\\quad +(k+1)(k+2)\\=(k+1)(k+2)\left(\frac{k}3+1\right)\\=\frac{(k+1)(k+2)(k+3)}3.\end{gathered}

This is the desired formula at k+1k+1, so induction establishes the result for every integer n≥1n\ge 1.

Scoring: base case 1; hypothesis 1; adding the correct next term 1; factoring 1; conclusion 1.

Exercise 3 Euclidean algorithm and inverse · 5 points

Find gcd⁡(391,299)\gcd(391,299), exhibit a Bézout identity, and explain whether 391 has an inverse modulo 299.

Show solution 3 and scoring 391=299+92299=3×92+2392=4×23.\begin{gathered}391=299+92\\299=3\times92+23\\92=4\times23.\end{gathered}

Thus gcd⁡(391,299)=23\gcd(391,299)=23.

Back-substitution gives

23=299−3×92=299−3(391−299)=−3×391+4×299.\begin{gathered}23=299-3\times92\\=299-3(391-299)\\=-3\times391+4\times299.\end{gathered}

An inverse would require 391u≡1(mod299)391u\equiv 1 \pmod{299}, equivalently 391u+299v=1391u+299v=1 for some integers u,vu,v. Every expression on the left is divisible by 23, but 1 is not. Therefore no inverse exists.

Scoring: Euclidean divisions 2; gcd 1; Bézout identity 1; inverse explanation 1.

Exercise 4 Integer and nonnegative solutions · 5 points

Find every integer solution of 18x+30y=8418x+30y=84. Then identify all solutions with x≥0x\ge 0 and y≥0y\ge 0.

Show solution 4 and scoring

The gcd is 6 and 6∣846 \mid 84, so solutions exist. Divide by 6:

3x+5y=14.3x+5y=14.

A particular solution is (3,1)(3,1). The coprime coefficients give all integer solutions

x=3+5t,y=1−3t,t∈Z.\begin{gathered}x=3+5t,\qquad y=1-3t,\\t\in\mathbb{Z}.\end{gathered}

For completeness, subtract 3×3+5×1=143\times 3+5\times 1=14 from any solution: 3(x−3)=−5(y−1)3(x-3)=-5(y-1). Hence 5∣(x−3)5 \mid (x-3), giving x−3=5tx-3=5t and y−1=−3ty-1=-3t.

For nonnegative solutions, 3+5t≥03+5t\ge 0 implies t≥−3/5t\ge -3/5, and 1−3t≥01-3t\ge 0 implies t≤1/3t\le 1/3. The only integer in that interval is 0. Thus (3,1)(3,1) is the only nonnegative solution. Check: 18×3+30×1=8418\times 3+30\times 1=84.

Scoring: existence/reduction 1; particular solution 1; complete family with justification 2; nonnegative restriction 1.

Exercise 5 Congruence and simultaneous constraints · 6 points

First solve 14x≡8(mod30)14x\equiv 8 \pmod{30}, listing the distinct residues modulo 30. Then find all integers satisfying both this congruence and x≡2(mod4)x\equiv 2 \pmod{4}.

Show solution 5 and scoring

gcd⁡(14,30)=2\gcd(14,30)=2 divides 8. Divide the coefficients and modulus by 2:

7x≡4(mod15).7x\equiv4\pmod{15}.

Since 7×13=91≡1(mod15)7\times 13=91\equiv 1 \pmod{15}, x≡52≡7(mod15)x\equiv 52\equiv 7 \pmod{15}. The distinct residues modulo 30 are 7 and 22.

For the second condition, write x=7+15tx=7+15t. Modulo 4 this becomes 3+3t≡23+3t\equiv 2, hence 3t≡3(mod4)3t\equiv 3 \pmod{4}. Multiplying by 3 gives t≡1(mod4)t\equiv 1 \pmod{4}. Set t=1+4st=1+4s:

x=7+15(1+4s)=22+60s,s∈Z.\begin{gathered}x=7+15(1+4s)\\=22+60s,\qquad s\in\mathbb{Z}.\end{gathered}

Conversely, every such x satisfies both original congruences: 14x−8=300+840s14x-8=300+840s is divisible by 30, and x−2=20+60sx-2=20+60s is divisible by 4. This proves both validity and completeness.

Scoring: valid reduction 1; inverse and reduced residue 1; both residues modulo 30 1; substitution into second condition 1; complete family 1; verification 1.

Exercise 6 Complex roots · 5 points

Find all complex solutions of z3=−8iz^{3}=-8i in exact Cartesian form. Explain why your list is complete.

Show solution 6 and scoring

Write

−8i=8[cos⁡(−π2)+isin⁡(−π2)].\begin{gathered}-8i=8\left[\cos\left(-\frac\pi2\right)\right.\\\left.\quad+i\sin\left(-\frac\pi2\right)\right].\end{gathered}

The cube roots have modulus 2 and arguments

−π6+2πk3,k=0,1,2.\begin{gathered}-\frac\pi6+\frac{2\pi k}3,\\k=0,1,2.\end{gathered}

They are therefore

z0=2[cos⁡(−π6)+isin⁡(−π6)]=3−i,z1=2[cos⁡π2+isin⁡π2]=2i,z2=2[cos⁡7π6+isin⁡7π6]=−3−i.\begin{gathered}z_0=2\left[\cos\left(-\frac\pi6\right)\right.\\\left.\quad+i\sin\left(-\frac\pi6\right)\right]\\=\sqrt3-i,\\z_1=2\left[\cos\frac\pi2+i\sin\frac\pi2\right]\\=2i,\\z_2=2\left[\cos\frac{7\pi}6\right.\\\left.\quad+i\sin\frac{7\pi}6\right]\\=-\sqrt3-i.\end{gathered}

Their arguments are distinct modulo 2π2\pi, so these are three distinct roots. Cubing each polar form triples its argument and cubes its modulus, producing −8i-8i. Every root must have modulus 2 and argument satisfying 3θ≡−π/2(mod2π)3\theta \equiv -\pi /2 \pmod{2\pi }, which gives precisely these three classes. Here an angular congruence modulo 2π2\pi means equality up to an integer multiple of 2π2\pi; it is distinct from the integer congruences above.

Scoring: polar form 1; root modulus and arguments 1; three Cartesian values 2; completeness 1.

More practice: Waterloo MATH135, Fall 2009

These Waterloo papers are from Fall 2009. Choose questions on topics covered in your current course.

Useful direct links:

Try a question before opening its solution. Compare the reasoning, then redo any step you could not justify on your own.

Choose your next step

Start with a concept or one of these exercises. If you have an attempt, you can use it to show where you got stuck. Get help with proofs and discrete mathematics.

Useful for

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson