The pre-requisite of a>b is not necessary in Euclid's algorithm. You can take any two values in a and b and the answer will be correct.. The only thing is that in case of a
we can find gcd(a,b) from forming an equation that has a and b where for example a>b then we can make it a=bx+c where if x and c are integers then if we get gcd(b, c ) then surely we can make the equation a=bx+c into factorization form a=(..)(...) for example gcd(b,c)=k then we can make a=k(((b/k) ) ) *x)+c/k) where because k is gcd(b,c) then surely b/k has a remainder of 0 as well as for c/k so at the same time we get gcd(a,b) i.e. gcd( b, c) so that gcd(a,b) = gcd(b,c) and if you want to find gcd(b,c) again, you can make the equation again so you can get gcd(b,c) and so on until the most It's simple, so method 1 is made in the form of a table, actually methods 1 and 2 are basically the same, namely from the equation
Please start teaching FULL STACK DEVELOPMENT COURSE. I am learning now 😌. if you start it now , it will be helpful for many students who are preparing for placements.
Thank you I swear your videos have been saving my semesters😂
That too before 2hrs
Tomorrow is my dm exam😂
@@df8xentono68 tommorow is mine bro
The GCD of 529 and 123 is 1 and so they are relatively prime numbers.
Answer is 1, so 529 and 123 are relatively prime.😊
All the best 4r ur exam😂... @happy ni8 out🎉😂
The pre-requisite of a>b is not necessary in Euclid's algorithm. You can take any two values in a and b and the answer will be correct.. The only thing is that in case of a
Yeah
true i try this by myself it works.So incredible!!
yes when the first time else part run it makes a>b if initially b>a
GCD(529,123) = 1
So both are relatively prime numbers
How?
GCD (529,123) = 1.
Wonderful! Thank you for your Services.
Your neso academy teaching methods are really super
Thank you for these videos really very helpful for my PhD coursework
Hey, the algorithm also works for b > a. There is no requirement of prerequisite a > b.
GCD(529, 123) = 1
GCD(529, 123) = GCD(123, 529%123) = GCD(123, 37)
GCD(123, 37) = GCD(37, 123%37) = GCD(37, 12)
GCD(37, 12) = GCD(12, 37%12) = GCD(12, 1)
GCD(12, 1) = GCD(1, 0) Since, b=0, it will return a=1
Hence, GCD(529, 123) = 1 Answer
this was so much explained than my teacher in class
Two reduce one iteration or recursion, we can end the iteration or recursion by checking if rendering is zero and return b
Thank you sir
Keep it up.
Can you please make video on data encryption standard (DES)?
nice explanation and nice algorithm
Superb simple explanation. Thank You
way work methode 1 and 2 is same because that of expresion equation . example gcd(a,b) when a>b then we have a=bx+c when c is remainder
Thanks a lot ! Really great content
Thank you sir ❤
My ens subject's sir was asked about this method in viva today.
Fan of this channel
very helpful. Thank you so much
crystal clear explanation! Thank you so much.
Nice explanation bruh
Great bosss thanks for the best video
Thank you
If I say that Time complexity of Euclid's method is "logb base a", is it correct ?
int gcd(int A, int B)
{
int maxi=max(A,B);
int mini=min(A,B);
if(B == 0 ){
return A;
}else{
return gcd(mini,maxi%mini);
}
}
thank you very much
gcd(529,123) = 1
Thanks
Using a program someone wrote using a function on Matlab:
GCD(529,123)
ans =
1
Amazing
we can find gcd(a,b) from forming an equation that has a and b where for example a>b then we can make it a=bx+c where if x and c are integers then if we get gcd(b, c ) then surely we can make the equation a=bx+c into factorization form a=(..)(...) for example gcd(b,c)=k then we can make a=k(((b/k) ) ) *x)+c/k) where because k is gcd(b,c) then surely b/k has a remainder of 0 as well as for c/k so at the same time we get gcd(a,b) i.e. gcd( b, c) so that gcd(a,b) = gcd(b,c) and if you want to find gcd(b,c) again, you can make the equation again so you can get gcd(b,c) and so on until the most It's simple, so method 1 is made in the form of a table, actually methods 1 and 2 are basically the same, namely from the equation
Homework Answer is 1.
Homework answer: 1.
thank you thank you thank you thank youuuuuuuuuuuuu
H.W ans: gcd(529,123) = 1
Homework answer HCF = 1
Home work sum ans is 1
GCD(529,123)=20
def find_gcd(a,b):
if b==0:
return a
else:
return find_gcd(b,a%b)
a = 529
b = 123
print(find_gcd(a,b))
Answer to H.W.
GCD(529, 123) = 1
15 is The Answer
answer is 1
1 is the answer right...
GCD =1
Osm method
Lewis John Harris Gary Garcia Edward
ahla kalam
83 mod 19 = Reminder is 7. How please can you be more specific? I didn't get it now.
If you divide 83 by 19 you get 4 plus remainder of 7.
83/19 = 4.368421053
4.368421053 - 4 = 0.368421052 ( calculator did)
0.368421052 * 19 = 7
calculator can do with brainlessly
Anderson Michelle Robinson James Thompson Paul
1,0=1
#include
int main(void)
{
int num1, num2, gcd;
printf("Enter the nums: ");
scanf("%d %d", &num1, &num2 );
while (num2 !=0 )
{
gcd = num1;
num1 = num2;
num2 = gcd % num2;
}
printf("Gcd is: %d
", num1);
return 0;
}
Bamodb
बमोदबा 😂
Please start teaching FULL STACK DEVELOPMENT COURSE. I am learning now 😌. if you start it now , it will be helpful for many students who are preparing for placements.
GCD(529, 123) = 1
GCD(529,123)=1
GCD (529,123)=1