| Exam Board | OCR MEI |
|---|---|
| Module | Further Pure with Technology (Further Pure with Technology) |
| Year | 2022 |
| Session | June |
| Marks | 20 |
| Paper | Download PDF ↗ |
| Mark scheme | Download PDF ↗ |
| Topic | Number Theory |
| Type | Quadratic residues |
| Difficulty | Challenging +1.8 This is a structured Further Maths question on quadratic residues requiring multiple techniques: solving quadratic congruences, systematic enumeration of residues modulo small primes, and a proof about the count of quadratic residues. Part (b) involves Fermat's Little Theorem and programming to find a Carmichael number. While covering advanced topics, most parts are guided and computational rather than requiring deep insight. The proof in (a)(vi) is standard, and the programming task is algorithmic. Harder than typical A-level but accessible with Further Maths knowledge. |
| Spec | 8.02g Quadratic residues: calculate and solve equations involving them8.02l Fermat's little theorem: both forms |
| Answer | Marks | Guidance |
|---|---|---|
| 2 | (a) | (i) |
| Answer | Marks | Guidance |
|---|---|---|
| right | B1 | |
| [1] | 2.5 | for i in range(0,1000): |
| Answer | Marks |
|---|---|
| (ii) | 481 is a quadratic residue modulo 1000 |
| Answer | Marks | Guidance |
|---|---|---|
| x2 481 (mod 1000) . For example x = 59. | B1 | |
| [1] | 2.4 | Need an actual example or reference |
| Answer | Marks |
|---|---|
| (iii) | Quadratic residues modulo 11 are |
| Answer | Marks |
|---|---|
| this list) | M1 |
| Answer | Marks |
|---|---|
| [2] | 2.5 |
| 1.2 | Accept appropriate code instead, |
| Answer | Marks |
|---|---|
| (iv) | Quadratic residues modulo 13 are |
| Answer | Marks |
|---|---|
| in this list) | M1 |
| Answer | Marks |
|---|---|
| [2] | 2.5 |
| 1.2 | Accept appropriate code instead |
| Answer | Marks |
|---|---|
| (v) | ( n − m ) 2 = n 2 − 2 m n + m 2 ( = m 2 + n ( n − 2 m ) ) |
| Answer | Marks |
|---|---|
| n. Therefore m 2 ( n − m ) 2 ( m o d n ) | M1 |
| Answer | Marks |
|---|---|
| [2] | 1.1a |
| 2.1 | Multiplying out the brackets |
| Answer | Marks |
|---|---|
| consideration modulo n. | Allow e.g. 𝑛2−2𝑚𝑛+ |
| Answer | Marks |
|---|---|
| (vi) | By part (v) |
| Answer | Marks |
|---|---|
| 2 | M1 |
| Answer | Marks |
|---|---|
| [4] | 3.1a |
| Answer | Marks |
|---|---|
| 2.1 | Use of previous result with n |
| Answer | Marks |
|---|---|
| 2 | m may be replaced by a |
| Answer | Marks | Guidance |
|---|---|---|
| (b) | (i) | If 91 were prime then 2 9 0 1 m o d 9 1 by |
| Answer | Marks |
|---|---|
| However 2 9 0 6 4 m o d 9 1 | M1 |
| Answer | Marks |
|---|---|
| [2] | 2.2a |
| 3.2a | soi. Need to see idea that 290 – 1 is |
| Answer | Marks |
|---|---|
| prime. | Can use values of a other |
| Answer | Marks |
|---|---|
| (ii) | 561 by the program on the right |
| Answer | Marks |
|---|---|
| Fully correct program. | M1 |
| Answer | Marks |
|---|---|
| [6] | 3.3 |
| Answer | Marks |
|---|---|
| 2.3 | Pseudo code accepted, condone |
| Answer | Marks |
|---|---|
| print(i) | M1 for prime test |
Question 2:
2 | (a) | (i) | 59
191
309
441
559
691
809
941
No need to state program example given on the
right | B1
[1] | 2.5 | for i in range(0,1000):
if i*i%1000==481:
print(i)
Need all the values for the mark
(ii) | 481 is a quadratic residue modulo 1000
because there is an integer x such that
x2 481 (mod 1000) . For example x = 59. | B1
[1] | 2.4 | Need an actual example or reference
to working in 2(a)(i) to get this
mark.
(iii) | Quadratic residues modulo 11 are
112 (mod 11)
422 (mod 11)
932 (mod 11)
542 (mod 11)
352 (mod 11)
(squaring 6, 7, 8, 9, 10 give values already in
this list) | M1
A1
[2] | 2.5
1.2 | Accept appropriate code instead,
must be stated
SC1 for 1, 3, 4, 5 and 9.
(iv) | Quadratic residues modulo 13 are
112 (mod 13)
422 (mod 13)
932 (mod 13)
342 (mod 13)
1252 (mod 13)
1062 (mod 13)
(squaring 7, 8, 9, 10, 11, 12 give values already
in this list) | M1
A1
[2] | 2.5
1.2 | Accept appropriate code instead
SC1 for 1, 3, 4, 9, 10 and 12.
(v) | ( n − m ) 2 = n 2 − 2 m n + m 2 ( = m 2 + n ( n − 2 m ) )
So (n−m)2 and m 2 differ by a multiple of
n. Therefore m 2 ( n − m ) 2 ( m o d n ) | M1
A1
[2] | 1.1a
2.1 | Multiplying out the brackets
Explanation or see n(n – 2m), and
consideration modulo n. | Allow e.g. 𝑛2−2𝑚𝑛+
𝑚2 = 0±0 + 𝑚2 (mod 𝑛)
(vi) | By part (v)
m 2 ( p − m ) 2 m o d p
2 1 ( p − 1 ) 2 m o d p
2 2 ( p − 2 ) 2 m o d p
...
p − 1 2 p + 1 2
m o d p
2 2
Therefore the number of quadratic residues mod
p − 1
p is at most .
2
p − 1
Suppose n, m are such that 1 m n
2
and that m 2 = n 2 m o d p . Then p divides
n2 – m2 = (n – m)(n + m) and so p divides either
n – m or n + m (since p is prime).
But 0n−mn+m pand so n – m = 0
Therefore m = n.
Therefore each distinct integer between 1 and
p − 1
has a distinct square mod p and so there
2
p−1
are quadratic residues mod p.
2 | M1
A1
M1
A1
[4] | 3.1a
2.1
3.1a
2.1 | Use of previous result with n
replaced by p.
Explanation that pairing up p – 1
p − 1
values gives pairs.
2 | m may be replaced by a
specific value.
(b) | (i) | If 91 were prime then 2 9 0 1 m o d 9 1 by
Fermat’s little theorem.
However 2 9 0 6 4 m o d 9 1 | M1
A1
[2] | 2.2a
3.2a | soi. Need to see idea that 290 – 1 is
not a multiple of 91 implies 91 is not
prime. | Can use values of a other
than 2 here.
(ii) | 561 by the program on the right
Appropriate structure program
Loops with correct range dependent on m, n.
Check for common divisors and divisors with if
statement (and tracking greatest one found in
case of coprime function)
Fully correct program. | M1
M1
M1
M1
M1
A1
[6] | 3.3
3.3
3.4
2.1
2.1
2.3 | Pseudo code accepted, condone
lack of syntax, give reasonable
BOD on possible transcription
errors
def isprime(n):
prime=1
for i in range(2,n):
if n%i==0:
prime=0
return prime
def coprime(m,n):
coprime=1
for i in range(2,m+1):
if n%i==0 and m%i==0:
coprime=i
return coprime
for i in range(500,600):
candidate = 1
if isprime(i)==1:
candidate = 0
if isprime(i)==0:
for j in range(1,i):
if coprime(j,i)==1 and
((j**(i-1))%i)!=1:
candidate = 0
if candidate == 1:
print(i) | M1 for prime test
M1 for coprime test
M1 for test over range (can
be implied by any stated
output in this range).
M1 for rejecting primes
M1 for testing equation for
appropriate values.
A1 for value 561.
2
\begin{enumerate}[label=(\alph*)]
\item In this part of the question $n$ is an integer greater than 1 .\\
An integer $q$, where $0 < q < n$ is said to be a quadratic residue modulo $n$ if there exists an integer $x$ such that $\mathrm { x } ^ { 2 } \equiv \mathrm { q } ( \bmod n )$.
Note that under this definition 0 is not considered to be a quadratic residue modulo $n$.
\begin{enumerate}[label=(\roman*)]
\item Find all the integers $x$, where $0 \leqslant x < 1000$ which satisfy $x ^ { 2 } \equiv 481 ( \bmod 1000 )$.
\item Explain why 481 is a quadratic residue modulo 1000.
\item Determine the quadratic residues modulo 11.
\item Determine the quadratic residues modulo 13.
\item Show that, for any integer $m , m ^ { 2 } \equiv ( n - m ) ^ { 2 } ( \bmod n )$.
\item Prove that if $p$ is prime, where $p > 2$, then the number of quadratic residues modulo $p$ is $\frac { p - 1 } { 2 }$.
\end{enumerate}\item Fermat's little theorem states that if $p$ is prime and $a$ is an integer which is co-prime to $p$, then $a ^ { p - 1 } \equiv 1 ( \bmod p )$.
\begin{enumerate}[label=(\roman*)]
\item Use Fermat's little theorem to show that 91 is not prime.
\item Create a program to find an integer $n$ between 500 and 600 which is not prime and such that $\mathrm { a } ^ { \mathrm { n } - 1 } \equiv 1 ( \bmod n )$ for all integers $a$ which are co-prime to $n$.\\
In the Printed Answer Booklet
\begin{itemize}
\end{enumerate}\item Write down your program in full.
\item State the integer found by your program.
\end{itemize}
\end{enumerate}
\hfill \mbox{\textit{OCR MEI Further Pure with Technology 2022 Q2 [20]}}