OCR MEI Further Pure with Technology 2024 June — Question 2 23 marks

Exam BoardOCR MEI
ModuleFurther Pure with Technology (Further Pure with Technology)
Year2024
SessionJune
Marks23
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicNumber Theory
TypeProgramming tasks
DifficultyChallenging +1.8 This is a structured Further Maths question combining number theory concepts with programming. While it covers sophisticated topics (Wilson's theorem, proof by contradiction about infinitude of primes ≑ 3 mod 4), the question provides extensive scaffolding through multiple parts that guide students step-by-step. The programming component is straightforward implementation, and the proof in part (d) is heavily guided. More challenging than standard A-level due to the proof element and Further Maths content, but the scaffolding prevents it from being extremely difficult.
Spec8.02l Fermat's little theorem: both forms

2 Wilson's theorem states that a positive integer \(n > 1\) is prime if and only if \(( n - 1 ) ! \equiv n - 1 ( \bmod n )\).
    1. Calculate 136! (mod 137).
    2. Hence, determine if the integer 137 is prime.
    1. Create a program that uses Wilson's theorem to find all prime numbers less than or equal to \(n\).
      Write down your program in the Printed Answer Booklet.
    2. Using part (b)(i), write down all prime numbers \(x\), where \(260 \leqslant x \leqslant 300\).
    1. Explain why there is exactly one prime number congruent to \(2 ( \bmod 4 )\).
    2. Explain why no prime number is congruent to \(0 ( \bmod 4 )\).
    3. Using part (b)(ii), write down the three prime numbers \(y\), where \(260 \leqslant y \leqslant 300\), that are congruent to \(3 ( \bmod 4 )\). Label the three prime numbers in part (c)(iii) \(c _ { 1 } , c _ { 2 }\) and \(c _ { 3 }\). Define the integer \(N\) by \(N = 4 c _ { 1 } c _ { 2 } c _ { 3 } + 3\).
    4. Explain why \(N\) is not divisible by \(c _ { 1 } , c _ { 2 }\) or \(c _ { 3 }\).
    5. Write down the value of \(N ( \bmod 4 )\).
  1. The fundamental theorem of arithmetic states that every positive integer can be written uniquely as the product of powers of prime numbers. Suppose there are finitely many prime numbers congruent to \(3 ( \bmod 4 )\). Label these prime numbers \(p _ { 1 } , \ldots , \mathrm { p } _ { \mathrm { n } }\), where \(p _ { 1 } = 3\). Using the \(n - 1\) integers \(p _ { 2 } , \ldots , \mathrm { p } _ { \mathrm { n } }\), define the integer \(M\) by \(\mathrm { M } = 4 \mathrm { p } _ { 2 } \mathrm { p } _ { 3 } \ldots \mathrm { p } _ { \mathrm { n } } + 3\).
    1. Write down the value of \(M ( \bmod 4 )\).
    2. Explain why \(\mathrm { M } = \mathrm { q } _ { 1 } \mathrm { q } _ { 2 } \ldots \mathrm { q } _ { \mathrm { r } }\), where the integers \(q _ { 1 } , \ldots , \mathrm { q } _ { \mathrm { r } }\) are all prime.
    3. Prove that there is at least one integer \(i\), where \(1 \leqslant i \leqslant n\), such that \(q _ { i } \equiv 3 ( \bmod 4 )\).
    4. Hence, deduce that there are infinitely many prime numbers congruent to \(3 ( \bmod 4 )\).

Question 2:
AnswerMarks Guidance
2(a) (i)
[1]1.1 May see math.factorial(136!) % 137
2(a) (ii)
theorem.B1
[1]1.1 Must include clear statement regarding primality of 137.
2(b) (i)
Loop for 𝑗 up to 𝑛+1.
Check for solution with if statement and print
result.
AnswerMarks
Fully correct programme.M1
A1
A1
AnswerMarks
[3]3.3
2.1
AnswerMarks
2.5Pseudo code accepted, condone lack of syntax, give reasonable
BOD on possible transcription errors based on correct answer to
2(b)(ii).
Program must include code to implement Wilson’s theorem. This
may include use of math.factorial or direct computation of
factorial.
Example Python code
def wlistprimes(n):
for j in range (2, n +1):
if (math.factorial(j - 1) + 1) % j == 0:
print(j)
Must not produce 1 as a result.
AnswerMarks Guidance
2(b) (ii)
[1]1.1
2(c) (i)
[1]2.2a
2(c) (ii)
by 4 and hence not prime.B1
[1]2.2a
2(c) (iii)
[1]1.1
2(c) (iv)
𝑐 ,𝑐 or 𝑐 .
AnswerMarks Guidance
1 2 3B1
[1]2.2a
2(c) (v)
[1]1.1
2(d) (i)
[1]2.2a Accept βˆ’1.
2(d) (ii)
theorem of arithmetic 𝑀 can be written
uniquely as the product of powers of prime
numbers.
Expressing each power of a prime as a
AnswerMarks
product gives the required form.B1
B1
AnswerMarks
[2]1.2
2.4It is sufficient to state that the π‘ž s are not necessarily distinct.
𝑖
AnswerMarks Guidance
2(d) (iii)
𝑖
for all integers 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ.
Then
𝑀 ≑ π‘ž β‹―π‘ž (mod 4)
1 π‘Ÿ
≑ 1Γ—β‹―Γ—1 (mod 4)
≑ 1 (mod 4).
But 𝑀 (mod 4) = 3.
This is a contradiction so π‘ž β‰’ 1(mod 4) for
𝑖
AnswerMarks
all integers 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ.M1
A1
A1
A1
AnswerMarks
[4]3.1a
2.1
1.1
AnswerMarks
2.2aDiscussion of 𝑀 > 2 not required.
May also see consideration of π‘ž = 2. Since 𝑀 is odd, the case
𝑖
π‘ž ≑ 2(mod 4) is not possible. Condone no discussion of this
𝑖
point.
Or equivalently, this is a contradiction, so π‘ž ≑ 3(mod 4) for
𝑖
some integer 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ.
AnswerMarks Guidance
2(d) (iv)
𝑖 𝑖
3(mod 4) and (d)(ii) implies 𝑀 ≑
0 (mod π‘ž ).
𝑖
By assumption 𝑝 ,…,𝑝 is a complete list of
1 𝑛
primes congruent to 3 (mod 4).
[Since 𝑀 is not divisible by 3,] this π‘ž must be
𝑖
one of the 𝑝 ,…,𝑝 .
2 𝑛
So 𝑀 ≑ 4𝑝 …𝑝 + 3 (mod π‘ž )
2 𝑛 𝑖
≑ 3(mod π‘ž ).
𝑖
This is a contradiction to 𝑀 (mod π‘ž ) ≑ 0 so
𝑖
there are infinitely many primes congruent to
AnswerMarks
3(mod 4)B1
B1
B1
B1
B1
AnswerMarks
[5]3.1a
1.1
2.2a
2.1
AnswerMarks
2.1Seen or implied use of this assumption from the question stem.
May see an equivalent argument that none of the π‘ž s is in the list
𝑖
of the 𝑝 s.
𝑗
If making an argument using the fact that none of π‘ž s is in the list
𝑖
of the 𝑝 s then will be able to assert the existence of a new
𝑗
unlisted prime congruent to 3(mod 4).
Question 2:
2 | (a) | (i) | 136 | B1
[1] | 1.1 | May see math.factorial(136!) % 137
2 | (a) | (ii) | 137 is prime by part 2(a)(i) and Wilson’s
theorem. | B1
[1] | 1.1 | Must include clear statement regarding primality of 137.
2 | (b) | (i) | Appropriate structured program
Loop for 𝑗 up to 𝑛+1.
Check for solution with if statement and print
result.
Fully correct programme. | M1
A1
A1
[3] | 3.3
2.1
2.5 | Pseudo code accepted, condone lack of syntax, give reasonable
BOD on possible transcription errors based on correct answer to
2(b)(ii).
Program must include code to implement Wilson’s theorem. This
may include use of math.factorial or direct computation of
factorial.
Example Python code
def wlistprimes(n):
for j in range (2, n +1):
if (math.factorial(j - 1) + 1) % j == 0:
print(j)
Must not produce 1 as a result.
2 | (b) | (ii) | 263, 269, 271, 277, 281, 283 and 293. | B1
[1] | 1.1
2 | (c) | (i) | 2 is the only even prime number. | B1
[1] | 2.2a
2 | (c) | (ii) | A number congruent to 0 (mod 4) is divisible
by 4 and hence not prime. | B1
[1] | 2.2a
2 | (c) | (iii) | 263, 271 and 283. | B1
[1] | 1.1
2 | (c) | (iv) | 𝑁 leaves a remainder 3 when divided by
𝑐 ,𝑐 or 𝑐 .
1 2 3 | B1
[1] | 2.2a
2 | (c) | (v) | 3 | B1
[1] | 1.1
2 | (d) | (i) | 3 | B1
[1] | 2.2a | Accept βˆ’1.
2 | (d) | (ii) | 𝑀 is a positive integer so by the fundamental
theorem of arithmetic 𝑀 can be written
uniquely as the product of powers of prime
numbers.
Expressing each power of a prime as a
product gives the required form. | B1
B1
[2] | 1.2
2.4 | It is sufficient to state that the π‘ž s are not necessarily distinct.
𝑖
2 | (d) | (iii) | For a contradiction suppose π‘ž ≑ 1(mod 4)
𝑖
for all integers 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ.
Then
𝑀 ≑ π‘ž β‹―π‘ž (mod 4)
1 π‘Ÿ
≑ 1Γ—β‹―Γ—1 (mod 4)
≑ 1 (mod 4).
But 𝑀 (mod 4) = 3.
This is a contradiction so π‘ž β‰’ 1(mod 4) for
𝑖
all integers 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ. | M1
A1
A1
A1
[4] | 3.1a
2.1
1.1
2.2a | Discussion of 𝑀 > 2 not required.
May also see consideration of π‘ž = 2. Since 𝑀 is odd, the case
𝑖
π‘ž ≑ 2(mod 4) is not possible. Condone no discussion of this
𝑖
point.
Or equivalently, this is a contradiction, so π‘ž ≑ 3(mod 4) for
𝑖
some integer 𝑖 where 1 ≀ 𝑖 ≀ π‘Ÿ.
2 | (d) | (iv) | By (d)(iii) at least one π‘ž satisfies π‘ž ≑
𝑖 𝑖
3(mod 4) and (d)(ii) implies 𝑀 ≑
0 (mod π‘ž ).
𝑖
By assumption 𝑝 ,…,𝑝 is a complete list of
1 𝑛
primes congruent to 3 (mod 4).
[Since 𝑀 is not divisible by 3,] this π‘ž must be
𝑖
one of the 𝑝 ,…,𝑝 .
2 𝑛
So 𝑀 ≑ 4𝑝 …𝑝 + 3 (mod π‘ž )
2 𝑛 𝑖
≑ 3(mod π‘ž ).
𝑖
This is a contradiction to 𝑀 (mod π‘ž ) ≑ 0 so
𝑖
there are infinitely many primes congruent to
3(mod 4) | B1
B1
B1
B1
B1
[5] | 3.1a
1.1
2.2a
2.1
2.1 | Seen or implied use of this assumption from the question stem.
May see an equivalent argument that none of the π‘ž s is in the list
𝑖
of the 𝑝 s.
𝑗
If making an argument using the fact that none of π‘ž s is in the list
𝑖
of the 𝑝 s then will be able to assert the existence of a new
𝑗
unlisted prime congruent to 3(mod 4).
2 Wilson's theorem states that a positive integer $n > 1$ is prime if and only if $( n - 1 ) ! \equiv n - 1 ( \bmod n )$.
\begin{enumerate}[label=(\alph*)]
\item \begin{enumerate}[label=(\roman*)]
\item Calculate 136! (mod 137).
\item Hence, determine if the integer 137 is prime.
\end{enumerate}\item \begin{enumerate}[label=(\roman*)]
\item Create a program that uses Wilson's theorem to find all prime numbers less than or equal to $n$.\\
Write down your program in the Printed Answer Booklet.
\item Using part (b)(i), write down all prime numbers $x$, where $260 \leqslant x \leqslant 300$.
\end{enumerate}\item \begin{enumerate}[label=(\roman*)]
\item Explain why there is exactly one prime number congruent to $2 ( \bmod 4 )$.
\item Explain why no prime number is congruent to $0 ( \bmod 4 )$.
\item Using part (b)(ii), write down the three prime numbers $y$, where $260 \leqslant y \leqslant 300$, that are congruent to $3 ( \bmod 4 )$.

Label the three prime numbers in part (c)(iii) $c _ { 1 } , c _ { 2 }$ and $c _ { 3 }$. Define the integer $N$ by $N = 4 c _ { 1 } c _ { 2 } c _ { 3 } + 3$.
\item Explain why $N$ is not divisible by $c _ { 1 } , c _ { 2 }$ or $c _ { 3 }$.
\item Write down the value of $N ( \bmod 4 )$.
\end{enumerate}\item The fundamental theorem of arithmetic states that every positive integer can be written uniquely as the product of powers of prime numbers.

Suppose there are finitely many prime numbers congruent to $3 ( \bmod 4 )$. Label these prime numbers $p _ { 1 } , \ldots , \mathrm { p } _ { \mathrm { n } }$, where $p _ { 1 } = 3$. Using the $n - 1$ integers $p _ { 2 } , \ldots , \mathrm { p } _ { \mathrm { n } }$, define the integer $M$ by\\
$\mathrm { M } = 4 \mathrm { p } _ { 2 } \mathrm { p } _ { 3 } \ldots \mathrm { p } _ { \mathrm { n } } + 3$.
\begin{enumerate}[label=(\roman*)]
\item Write down the value of $M ( \bmod 4 )$.
\item Explain why $\mathrm { M } = \mathrm { q } _ { 1 } \mathrm { q } _ { 2 } \ldots \mathrm { q } _ { \mathrm { r } }$, where the integers $q _ { 1 } , \ldots , \mathrm { q } _ { \mathrm { r } }$ are all prime.
\item Prove that there is at least one integer $i$, where $1 \leqslant i \leqslant n$, such that $q _ { i } \equiv 3 ( \bmod 4 )$.
\item Hence, deduce that there are infinitely many prime numbers congruent to $3 ( \bmod 4 )$.
\end{enumerate}\end{enumerate}

\hfill \mbox{\textit{OCR MEI Further Pure with Technology 2024 Q2 [23]}}