« first day (932 days earlier)      last day (15 days later) » 

5:36 AM
@JohnRennie Hi
 
Hi :-)
 
needed help in understanding an algorithm
Can u explain how the eucldeian algorithm section works
like why we need to do the substracting
 
I have a couple of other questions to answer. I'll ping you as soon as I'm free.
 
sure
 
6:26 AM
@Aladdin Hi
Suppose we have two numbers A and B and they have a common divisor n
Then we can write:
A = a × n
B = B × n
We'll assume A > B, then we can subtract B from A:
A - B = an - bn = (a - b)n
But (a - b)n also has a divisor of n because it's a number × n
So that means is n is a divisor of A and a divisor of B then it's also a divisor of A - B
 
6:53 AM
Ahh got it
 
OK :-)
 

« first day (932 days earlier)      last day (15 days later) »