The GCF is 6a2b
18a^3bc
Answer: GCF= b
The GCF of ba and b is b. That factors to b(a - 1)
b 18a 1.8 doc
The GCF is b.
The GCF is 1.
GCF of a and b is a if b is divisible by a.87 is divisible by 29 so, GCF(29,87) = 29.
If you have two numbers A and B, and A > B, then GCF(A, B) = (A-B, B) Thus the problem of finding the GCF of A and B has been reduced to finding the GCF of B and a smaller number, A-B. This process can be continued until the two numbers are the same: and that number is the GCF.
#include<stdio.h> main() { int a,b,i,lcm,gcf; printf("\n Enter two numbers"); scanf("%d%d",&a,&b); for(i=0;i<=a;i++) { if((b%i==0)&&(a%i==0)) { gcf=i; } } lcm=a*b/gcf; printf("\n GCF is %d and LCM is %d",gcf,lcm); }
The GCF is B.
The GCF is 1.