All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Sum Three Factorials, Get Exponent (Posted on 2007-07-03) Difficulty: 3 of 5
Determine all possible quadruplets (p, q, r, s) of positive integers with p< = q< = r satisfying the equation p! + q! + r! = 2^s.

See The Solution Submitted by K Sengupta    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer findings | Comment 2 of 8 |

 10   for Tot=1 to 1000000
 20   for P=1 to int(Tot/3)
 30   for Q=P to int((Tot-P)/2)
 40   R=Tot-P-Q
 50   Sp2=!(P)+!(Q)+!(R)
 60   S=int(log(Sp2)/log(2)+0.5)
 70   if 2^S=Sp2 then print P;Q;R;S
 80   next
 90   next
100   next

was allowed to run until the total of p+q+r got to 512 and found only

p  q  r  s
1  1  2  2
1  1  3  3
2  3  4  5
2  3  5  7

 

 


  Posted by Charlie on 2007-07-03 10:31:57
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information