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

Home > Numbers
Lcm equation (Posted on 2020-11-26) Difficulty: 3 of 5
Find all tuples of positive integers (a,b,c) such that lcm(a,b,c)=(ab+bc+ca)/4.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution but not proof | Comment 1 of 4
I found only one solution:  (a,b,c) = (1,2,2)  with LCM=2
for a,b,c up to 300
(I assumed WLOG that a <= b <= c)

Output:   1 2 2 and the LCM is: 2
Program (Python):

def myLCM(*integers):   # the '*' allows any number of inputs
    """ input integers separated by commas; output is the Least Common Multiple """
    from math import gcd
    ans = 1
    for ar in integers:
        ans = abs(ans*ar) // gcd(ans,ar)
    return ans

big = 300
for a in range(1,big):
    for b in range(a,big):
        for c in range(b,big):
            if myLCM(a,b,c) == (a*b+b*c+c*a)/4:
                print(a,b,c, 'and the LCM is:', myLCM(a,b,c))
  Posted by Larry on 2020-11-26 10:16:36
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