| Exam Board | OCR MEI |
|---|---|
| Module | Further Pure with Technology (Further Pure with Technology) |
| Year | 2024 |
| Session | June |
| Marks | 23 |
| Paper | Download PDF ↗ |
| Mark scheme | Download PDF ↗ |
| Topic | Number Theory |
| Type | Programming tasks |
| Difficulty | Challenging +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. |
| Spec | 8.02l Fermat's little theorem: both forms |
| Answer | Marks | 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) |
| Answer | Marks |
|---|---|
| Fully correct programme. | M1 |
| Answer | Marks |
|---|---|
| [3] | 3.3 |
| Answer | Marks |
|---|---|
| 2.5 | Pseudo code accepted, condone lack of syntax, give reasonable |
| Answer | Marks | 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) |
| Answer | Marks | Guidance |
|---|---|---|
| 1 2 3 | B1 | |
| [1] | 2.2a | |
| 2 | (c) | (v) |
| [1] | 1.1 | |
| 2 | (d) | (i) |
| [1] | 2.2a | Accept β1. |
| 2 | (d) | (ii) |
| Answer | Marks |
|---|---|
| product gives the required form. | B1 |
| Answer | Marks |
|---|---|
| [2] | 1.2 |
| 2.4 | It is sufficient to state that the π s are not necessarily distinct. |
| Answer | Marks | Guidance |
|---|---|---|
| 2 | (d) | (iii) |
| Answer | Marks |
|---|---|
| all integers π where 1 β€ π β€ π. | M1 |
| Answer | Marks |
|---|---|
| [4] | 3.1a |
| Answer | Marks |
|---|---|
| 2.2a | Discussion of π > 2 not required. |
| Answer | Marks | Guidance |
|---|---|---|
| 2 | (d) | (iv) |
| Answer | Marks |
|---|---|
| 3(mod 4) | B1 |
| Answer | Marks |
|---|---|
| [5] | 3.1a |
| Answer | Marks |
|---|---|
| 2.1 | Seen or implied use of this assumption from the question stem. |
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]}}