Skip to main content
ScotlandMathsSyllabus dot point

How do you prove a mathematical statement directly, by contradiction or by contrapositive, and how do you use the Euclidean algorithm?

Construct proofs using direct proof, proof by contradiction and proof by contrapositive, disprove a conjecture by counterexample, and use the Euclidean algorithm to find the highest common factor and express it as a linear combination.

A focused answer to the SQA Advanced Higher Mathematics number theory and methods of proof content, covering direct proof, proof by contradiction, proof by contrapositive, disproof by counterexample, the fundamental theorem of arithmetic, and the Euclidean algorithm for the highest common factor and its linear combination.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Direct proof
  3. Proof by contradiction and contrapositive
  4. Disproof by counterexample
  5. The Euclidean algorithm
  6. Try this

What this dot point is asking

The SQA wants you to write rigorous proofs using the three main techniques, direct proof, proof by contradiction and proof by contrapositive, to disprove a false claim with a counterexample, and to use the Euclidean algorithm to find a highest common factor and express it as a linear combination.

Direct proof

A direct proof moves from what you are given to what you must show, using precise definitions. To prove a statement about even or odd numbers, for instance, write an even number as 2k2k and an odd number as 2k+12k + 1 and manipulate algebraically.

Proof by contradiction and contrapositive

These two indirect methods are the SQA's favourites for statements that resist a direct attack. Contradiction assumes the negation and forces an absurdity. Contrapositive swaps and negates the implication, which is logically equivalent but often easier to prove.

Disproof by counterexample

A claim of the form "for all nn, ..." is false the moment one case fails. To disprove it you need exhibit only a single counterexample, with the arithmetic shown.

The Euclidean algorithm

The Euclidean algorithm finds the highest common factor of two integers by repeated division: replace the larger number by the remainder until the remainder is zero, and the last non-zero remainder is the gcd. Reversing the chain expresses the gcd as an integer combination of the originals, a result underpinned by the fundamental theorem of arithmetic that every integer factorises uniquely into primes.

Try this

Q1. Disprove: n2+n+41n^2 + n + 41 is prime for every positive integer nn. [2 marks]

  • Cue. At n=41n = 41 the expression is 412+41+41=41(41+2)41^2 + 41 + 41 = 41(41 + 2), divisible by 4141, so not prime.

Q2. Find gcd(35,14)\gcd(35, 14) by the Euclidean algorithm. [2 marks]

  • Cue. 35=2×14+735 = 2\times 14 + 7; 14=2×7+014 = 2\times 7 + 0; gcd =7= 7.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AH style: contradiction4 marksProve by contradiction that 2\sqrt{2} is irrational.
Show worked answer →

Assume the opposite: 2=ab\sqrt{2} = \dfrac{a}{b} in lowest terms, so aa and bb share no common factor (1 mark).

Then a2=2b2a^2 = 2b^2, so a2a^2 is even, hence aa is even; write a=2ca = 2c, giving 4c2=2b24c^2 = 2b^2, so b2=2c2b^2 = 2c^2 and bb is even (2 marks).

Both aa and bb are even, contradicting the assumption that the fraction was in lowest terms. Therefore 2\sqrt{2} is irrational (1 mark). Markers reward the assumption, the deductions that aa and bb are even, the contradiction, and the conclusion.

AH style: Euclidean algorithm4 marksUse the Euclidean algorithm to find gcd(56,15)\gcd(56, 15) and express it as 56m+15n56m + 15n.
Show worked answer →

56=3×15+1156 = 3\times 15 + 11; 15=1×11+415 = 1\times 11 + 4; 11=2×4+311 = 2\times 4 + 3; 4=1×3+14 = 1\times 3 + 1; 3=3×1+03 = 3\times 1 + 0, so gcd=1\gcd = 1 (2 marks).

Back-substitute: 1=41×3=4(112×4)=3×411=3(1511)11=3×154×11=3×154(563×15)=15×154×561 = 4 - 1\times 3 = 4 - (11 - 2\times 4) = 3\times 4 - 11 = 3(15 - 11) - 11 = 3\times 15 - 4\times 11 = 3\times 15 - 4(56 - 3\times 15) = 15\times 15 - 4\times 56 (1 mark).

So 1=56(4)+15(15)1 = 56(-4) + 15(15), giving m=4m = -4, n=15n = 15 (1 mark). Markers reward the division chain, the gcd, and the back-substitution to a linear combination.

Related dot points

Sources & how we know this