PDA

View Full Version : large number!!


lordy12
Mar31-07, 03:25 PM
1. Finding gcd(2^10,10!



2. Relevant equations



3. I attempted to try the Euclidean algorithm, but it would take forever. Is there a certain number trick?

Dick
Mar31-07, 03:34 PM
gcd(a,b) is the largest number that divides both a and b. It must be a power of 2. Why did I say that?

lordy12
Mar31-07, 03:39 PM
i know its a power of 2, but you still have to use the euclidean algorithm. I don't want a "guess and check process."

Dick
Mar31-07, 03:42 PM
Then think of prime factors. How many 2's are there in the factorization of 10! ?

lordy12
Mar31-07, 03:47 PM
i got it. thanks