Re: Powers of 2
- From: "Dave" <n/a>
- Date: Mon, 13 Mar 2006 20:13:37 -0000
"Bob" <me13013@xxxxxxxxxxx> wrote in message
news:1142260177.933653.170930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I wrote:
ObPuzzle: 3 is prime and one less than a perfect square. What is the
next number with both those properties?
and Eric Sosman replied
A confirmation of Runyn's point: It took me only a couple
of minutes to write a computer program to search for the answer
(which I'll post as soon as the program finishes).
(Assuming you're not being sarcastic).
The answer is found much quicker without the aid of a program. Let me
know when your program finishes.
Bob H
SPOLIER...
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
Let p be a prime which is one less than a square number.
p = n^2 - 1 for some positive integer n.
p = (n+1)(n-1)
Since p is prime, it must be the case that n-1=1, otherwise, both n-1 and
n+1 would be factors of p that were greater than or equal to 2.
Thus n = 2, and p = 3 is the only such prime with this property.
Dave
.
- Follow-Ups:
- Re: Powers of 2
- From: Bob
- Re: Powers of 2
- References:
- Powers of 2
- From: rohit . nawalgaria
- Re: Powers of 2
- From: Simon Tatham
- Re: Powers of 2
- From: Runyn
- Re: Powers of 2
- From: Bob
- Re: Powers of 2
- From: Eric Sosman
- Re: Powers of 2
- From: Bob
- Powers of 2
- Prev by Date: Re: Safest Place to Live...
- Next by Date: Re: What goes up but never comes down?
- Previous by thread: Re: Powers of 2
- Next by thread: Re: Powers of 2
- Index(es):
Relevant Pages
|
Loading