+0  
 
0
600
1
avatar+9 

If 45/7 = a+(1/c)/(1/b), where a, b and c are positive integers and b

 Jan 11, 2020
 #1
avatar
0

a=1; b=1;c=1;d=a + (1/c) / (1/b); if(d==45/7, goto5, goto6);printa, c, b; a++;if(a<100, goto3, 0);a=1;b++;if(b<100, goto3, discard=0; a=1;b=2;c++;if(c<100, goto3, 0)

 

OUTPUT:

 

a          c           b

6          7           3
5          7          10
4          7          17
3          7          24
2          7          31
1          7          38
6         14         6
5         14        20
4         14        34
3         14        48
2         14        62
1         14         76
Note: if you look carefully, you will see a pattern.

 Jan 11, 2020

7 Online Users

avatar
avatar
avatar
avatar