+0  
 
0
45
2
avatar

The sum of two positive integers a and b is 80. What is the largest possible value of gcd(a,b) + lcm(a,b)?

 Nov 29, 2020
 #1
avatar
+1

a=1; b=1;d=a+b;f=gcd(a,b)+lcm(a,b); if(d==80, goto5, goto6);printf, a, b; a++;if(a<200, goto2, 0);a=1;b++;if(b<200, goto2, discard=0; 

 

a = 39,   b = 41

 

a  +  b = 39  +  41 = 80

GCD(39, 41) = 1

LCM(39, 41) =1599

GCD + LCM =1  +  1599 =1600

 Nov 29, 2020

37 Online Users

avatar