+0  
 
0
472
1
avatar

How many pairs of positive integers \((a,b)\) are there that \(\gcd(a,b)=1\) and \(\frac{a}{b}+\frac{14b}{9a}\) is an integer?

 Mar 7, 2020
 #1
avatar
0

a=1; b=1;c=(a/b + (14*b /(9*a));if(floor(c)==ceil(c), goto4, goto5);printc,a,b,gcd(a,b); a++;if(a<200, goto2, 0);a=1;b++;if(b<200, goto2, discard=0;

 

 

Integer        A         B       GCD(A, B)

5                   1         3           1
3                   2         3           1
3                   7         3           1
5                   14       3           1

 Mar 7, 2020

7 Online Users

avatar
avatar
avatar
avatar
avatar