Click here to Skip to main content
15,888,579 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
JokeMore false idols Pin
cp987627-Nov-10 0:13
cp987627-Nov-10 0:13 
for Bernard proveth that if p > 7 then

p^6 = 1 + 84n


and thus 84 is the full proven truth, twice the truth of 42.

However 84 is but an imposter of the full proven truth.

As Bernard showeth, for p an odd prime, p^3 is an odd number, and consequently both (p^3 - 1) and (p^3 + 1) are even, but as they are consecutive even numbers then one must be divisible by 4, hence:

(p^6 - 1) = (p^3 - 1) * (p^3 + 1) = 2*a * 4*b = 8*a*b


Thus we have the next full proven truth that

p^6 = 1 + 168n


But there is more...

As p is prime, then the residue modulo 9 shall be one of {+/- 1, +/- 2, +/- 4} which using the fact that 2^3 = 8 = -1(mod 9), and 4 = 2^2 so 4^3 = 2^6 = 1(mod 9), then p^3 = +/- 1 (mod 9), then p^6 = 1 (mod 9) and hence:

(p^6 - 1) = 9*c


And so we have the next proven truth that if p is prime and p is not 2,3 or 7 then:

p^6 = 1 + 504n


and the full truth is that there is no number higher than 504 to satisfy this.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

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 
AnswerRe: Interest Calculation (for Pensions Schemes) Pin
Tadeusz Westawic25-Oct-10 4:37
Tadeusz Westawic25-Oct-10 4:37 

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.