Click here to Skip to main content
15,892,797 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: TIL...... Pin
dbaechtel10-Nov-10 2:24
professionaldbaechtel10-Nov-10 2:24 
AnswerRe: TIL...... Pin
Daniel Pfeffer10-Nov-10 8:33
professionalDaniel Pfeffer10-Nov-10 8:33 
GeneralRe: TIL...... Pin
NeverHeardOfMe10-Nov-10 11:10
NeverHeardOfMe10-Nov-10 11:10 
GeneralRe: TIL...... Pin
Daniel Pfeffer10-Nov-10 18:05
professionalDaniel Pfeffer10-Nov-10 18:05 
GeneralRe: TIL...... (better proof) Pin
Daniel Pfeffer10-Nov-10 18:33
professionalDaniel Pfeffer10-Nov-10 18:33 
AnswerRe: TIL...... Pin
Michael Waters10-Nov-10 10:49
Michael Waters10-Nov-10 10:49 
AnswerRe: TIL...... Pin
cp987610-Nov-10 14:16
cp987610-Nov-10 14:16 
JokeThe full truth is 84. Pin
Bernhard Hiller25-Nov-10 22:32
Bernhard Hiller25-Nov-10 22:32 
Hello cp9876,
the correct formula is actually
p^6 = 1 + 84n for some n, and p being a prime >7
With 84 = 2 * 42, your version is not wrong either, but only half of the truth.

At a first glance, it looked like a big step forward to proving the universal truth and meaning of everything (which is said to be 42), but as soon as I started to find the proof, doubts were shed on this old belief.

Let me now prove my version of the formula, following the steps outlined by _Erik_ previously in this thread.
We have to show that p^6 - 1 can be divided by 84, and I will do that by showing that it can be divided by 4, 3, and 7 (because 4*3*7=84) at the same time.

The first two factors are quite trivial:
I) (p^6 - 1) = (p^3 - 1) * (p^3 + 1), since p is prime and > 2, it is an odd number, thus
p^3
is an odd number, and consequently both (p^3 - 1) and (p^3 + 1) are even numbers, hence:
(p^6 - 1) = (p^3 - 1) * (p^3 + 1) = 2*a * 2*b = 4*a*b

II) With p being a prime and p > 3,
p^3
is an odd number which cannot be divided by 3. Consequently, either (p^3 - 1) (x)or (p^3 + 1) can be divided by 3 (for a more detailed proof of this, see a post from _Erik_ above). Hence:
(p^6 - 1) = (p^3 - 1) * (p^3 + 1) = 3*c * d

III) I did not find a smart proof for that "7", but the number of cases can be simply enumerated:
With p being prime and > 7,
p = (7*o + e) with o being an odd integer and e an even integer in {2; 4; 6; 8; 10; 12}

Now we have to prove that either (p^3 - 1) (x)or (p^3 + 1) can be divided by 7.
p^3 = (7*o + e)^3 = (7*o)^3 + 3*e*(7*o)^2 + 3*(7*o)*e^2 + e^3

It is easy to see that each of the summands (7*o)^3, 3*e*(7*o)^2, 3*(7*o)*e^2 can be divided by 7. We need to concentrate only on e^3: either e^3+1 (x)or e^3-1 must be dividable by 7. I enumerate all the 6 possible cases and then dicide for +1 or -1:
- e=2:  e^3=   8 => -1
- e=4:  e^3=  64 => -1
- e=6:  e^3= 216 => +1
- e=8:  e^3= 512 => +1
- e=10: e^3=1000 => +1
- e=12: e^3=1728 => +1
Now we can write:
(p^6 - 1) = (p^3 - 1) * (p^3 + 1) = 7*e * f

And consequently here it is:
(p^6 - 1) = (p^3 - 1) * (p^3 + 1) = 4*3*7*n


Now we must recognize the full proven truth of 84.
Previously, we were told half of the truth only.
Knowing this new proven truth, which replaces the old believe of 42 and proves it at the same time, we can look forward to an even brighter future.
JokeMore false idols Pin
cp987627-Nov-10 0:13
cp987627-Nov-10 0:13 
AnswerRe: TIL...... Pin
dpminusa10-Nov-10 14:54
dpminusa10-Nov-10 14:54 
Questionimage bounds after rotation Pin
mehdi001628-Oct-10 11:14
mehdi001628-Oct-10 11:14 
AnswerRe: image bounds after rotation [modified] PinPopular
Luc Pattyn28-Oct-10 11:39
sitebuilderLuc Pattyn28-Oct-10 11:39 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 10:51
professionalSauro Viti3-Nov-10 10:51 
GeneralRe: image bounds after rotation Pin
Luc Pattyn3-Nov-10 11:10
sitebuilderLuc Pattyn3-Nov-10 11:10 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 20:47
professionalSauro Viti3-Nov-10 20:47 
GeneralRe: image bounds after rotation Pin
harold aptroot3-Nov-10 21:40
harold aptroot3-Nov-10 21:40 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 22:42
professionalSauro Viti3-Nov-10 22:42 
GeneralRe: image bounds after rotation Pin
Luc Pattyn4-Nov-10 2:50
sitebuilderLuc Pattyn4-Nov-10 2:50 
QuestionSimple Algebra Pin
mbadi24-Oct-10 22:59
mbadi24-Oct-10 22:59 
AnswerRe: Simple Algebra Pin
Tadeusz Westawic25-Oct-10 4:50
Tadeusz Westawic25-Oct-10 4:50 
QuestionInterest Calculation (for Pensions Schemes) Pin
mbadi24-Oct-10 21:57
mbadi24-Oct-10 21:57 
AnswerRe: Interest Calculation (for Pensions Schemes) Pin
Richard MacCutchan24-Oct-10 22:44
mveRichard MacCutchan24-Oct-10 22:44 
GeneralRe: Interest Calculation (for Pensions Schemes) Pin
mbadi24-Oct-10 23:11
mbadi24-Oct-10 23:11 
GeneralRe: Interest Calculation (for Pensions Schemes) Pin
Richard MacCutchan25-Oct-10 0:24
mveRichard MacCutchan25-Oct-10 0:24 
AnswerRe: Interest Calculation (for Pensions Schemes) Pin
Luc Pattyn25-Oct-10 2:32
sitebuilderLuc Pattyn25-Oct-10 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.