mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2019-05-01, 17:28   #1
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default Test question

As many know, I'm a high school teacher.

I have a very high ability class who are studying for the UK's extended age-16 qualification called Additional Maths.

When the course required teaching iterative formulae (at a similar time to the main GCSE qualification also required them to revise basic division techniques) I decided to teach them them the Lucas Lehmer Primality Proof for Mersenne primes.

They know I'm obsessed with primes anyway, so this didn't come as much of a surprise to them.

They have recently been given an internal exam, NOT written by me which includes the following question:

Quote:
Mersenne primes are prime numbers that can be written in the form 2^n-1 where n is a whole number.

For example, 3 can be written as 2^2-1

Prove that 2^9-1 is not a Mersenne prime.
I'm not sure whether to be pleased or disappointed that, thus far (I haven't finished marking them) they have all used trial division rather than a LL test. Trial division is, of course, the much more efficient way of proving the compositeness of this number!

Last fiddled with by lukerichards on 2019-05-01 at 17:29
lukerichards is offline   Reply With Quote
Old 2019-05-01, 18:44   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2A0016 Posts
Default

Quote:
Originally Posted by lukerichards View Post
As many know, I'm a high school teacher.

I have a very high ability class who are studying for the UK's extended age-16 qualification called Additional Maths.

When the course required teaching iterative formulae (at a similar time to the main GCSE qualification also required them to revise basic division techniques) I decided to teach them them the Lucas Lehmer Primality Proof for Mersenne primes.

They know I'm obsessed with primes anyway, so this didn't come as much of a surprise to them.

They have recently been given an internal exam, NOT written by me which includes the following question:



I'm not sure whether to be pleased or disappointed that, thus far (I haven't finished marking them) they have all used trial division rather than a LL test. Trial division is, of course, the much more efficient way of proving the compositeness of this number!
I did Additional Maths at A Level way back when.

Even faster than trial division is to prove that 2pq-1 is divisible by both 2p-1 and 2q-1, thereby showing that a composite exponent can never yield a Mersenne prime.

To those who have not seen the proof:
2p == 1 (mod 2p-1)
2pq == (2p)q == 1q == 1 (mod 2p-1)
Therefore,
2pq-1 == 1 - 1 == 0 (mod 2p-1)
I had been taught modular arithmetic long before the age of 16 (as had everyone in my class: do they still teach "clock arithmetic" in UK schools these days?) and the above proof was known to me by the age of 15 or perhaps a year earlier.

Aded in edit: I forgot that you also need to prove that 9 is composite. Most kids aged 8 or over know that 9 = 3*3.

Last fiddled with by xilman on 2019-05-01 at 18:49
xilman is online now   Reply With Quote
Old 2019-05-01, 18:51   #3
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101Γ—103 Posts

23·1,223 Posts
Default

Quote:
Originally Posted by lukerichards View Post
I'm not sure whether to be pleased or disappointed that, thus far (I haven't finished marking them) they have all used trial division rather than a LL test. Trial division is, of course, the much more efficient way of proving the compositeness of this number!
Meresnne Primes must have a prime exponent, therefore 29-1 can't be prime.

Because the first number that they should try by trial division produces the answer, you should be thrilled. Visually, not 2, 3, or 5. Thus try a few primes (3 to 6 more) quickly. Then maybe switch over. That effectively is how GIMPS handles other numbers.
Uncwilly is offline   Reply With Quote
Old 2019-05-01, 19:17   #4
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

4408 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Meresnne Primes must have a prime exponent, therefore 29-1 can't be prime.
Whilst I'm aware of this, they are not and I wouldn't expect them to be aware of xilman's proof either, modular arithmetic not being a thing which is taught in schools any more. Even I wasn't taught it and I'm 30 years old.
lukerichards is offline   Reply With Quote
Old 2019-05-01, 19:25   #5
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

22·7·53 Posts
Default

Quote:
Originally Posted by lukerichards View Post
I'm not sure whether to be pleased or disappointed that, thus far (I haven't finished marking them) they have all used trial division rather than a LL test.
The LLT that I know is applied for odd p prime exponents (https://en.wikipedia.org/wiki/Lucas%...primality_test), so you'd need to extend it to use for composite exponents. In practice ofcourse it would have no value.
R. Gerbicz is offline   Reply With Quote
Old 2019-05-01, 19:59   #6
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

4,861 Posts
Default

Quote:
Originally Posted by lukerichards View Post
Whilst I'm aware of this, they are not and I wouldn't expect them to be aware of xilman's proof either, modular arithmetic not being a thing which is taught in schools any more. Even I wasn't taught it and I'm 30 years old.
Never mind modular arithmetic: Write 2^9 -1 as 8^3 - 1 and factor as a difference of cubes.
VBCurtis is offline   Reply With Quote
Old 2019-05-01, 20:04   #7
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25×32 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Never mind modular arithmetic: Write 2^9 -1 as 8^3 - 1 and factor as a difference of cubes.
Also not something they'd have come across in their education yet.
lukerichards is offline   Reply With Quote
Old 2019-05-01, 21:35   #8
dcheuk
 
dcheuk's Avatar
 
Jan 2019
Tallahassee, FL

2×3×41 Posts
Default

Quote:
Originally Posted by xilman View Post
I did Additional Maths at A Level way back when.

Even faster than trial division is to prove that 2pq-1 is divisible by both 2p-1 and 2q-1, thereby showing that a composite exponent can never yield a Mersenne prime.

To those who have not seen the proof:
2p == 1 (mod 2p-1)
2pq == (2p)q == 1q == 1 (mod 2p-1)
Therefore,
2pq-1 == 1 - 1 == 0 (mod 2p-1)
I had been taught modular arithmetic long before the age of 16 (as had everyone in my class: do they still teach "clock arithmetic" in UK schools these days?) and the above proof was known to me by the age of 15 or perhaps a year earlier.

Aded in edit: I forgot that you also need to prove that 9 is composite. Most kids aged 8 or over know that 9 = 3*3.
If \(n\not\in\text{prime}\) then for any \(a\geq2\) we have \(a^n-1=a^{pq}-1=(a^p-1)\cdot\Big(a^{p(q-1)}+a^{p(q-2)}+\cdots+a^1+1\Big)\).

I wouldn't expect even a college student taking number theory to use Lucas Lehmer to prove 2^p-1 is not prime, they probably won't even remember the lucas lehmer sequence (is that what it is called?).
dcheuk is offline   Reply With Quote
Old 2019-05-02, 06:21   #9
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

29·3·7 Posts
Default

Quote:
Originally Posted by lukerichards View Post
Also not something they'd have come across in their education yet.
This thread is leading me to wonder what they have come across in their education.
xilman is online now   Reply With Quote
Old 2019-05-02, 06:45   #10
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default

Quote:
Originally Posted by xilman View Post
This thread is leading me to wonder what they have come across in their education.
I'll post the course spec for GCSE maths and GCSE Additional Maths later. Don't forget they need to cover algebra, number, geometry, statistics and calculus... so depth of study is limited.
lukerichards is offline   Reply With Quote
Old 2019-05-02, 07:48   #11
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

2×23×37 Posts
Default

If your students are familiar with the formula for summing finitely many terms in a geometric progression, you could show them how that gives
\[ x^{n-1}+x^{n-2}y+x^{n-3}y^2+\ldots +y^{n-1}=\frac{x^n-y^n}{x-y} \]
and deduce for all integers x,y,n with n positive that \(x-y\) divides \(x^n-y^n\).
Nick is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GMP-ECM test question Rysiu GMP-ECM 5 2014-08-24 09:59
Question about LL test soloral Information & Answers 3 2013-02-13 02:13
LL Test : dumb question pacionet Math 2 2007-09-06 03:16
Question of efficiency: Test VS Generator synergy Miscellaneous Math 13 2004-10-14 18:14
Torture test question philmoore Hardware 7 2004-02-15 20:44

All times are UTC. The time now is 17:56.


Fri Jul 16 17:56:18 UTC 2021 up 49 days, 15:43, 1 user, load averages: 1.31, 1.50, 1.50

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.