Ask your own question, for FREE!
Mathematics 13 Online
OpenStudy (praxer):

Help me with this.

OpenStudy (praxer):

help me... :)

OpenStudy (praxer):

@ganeshie8

ganeshie8 (ganeshie8):

you want to find number of integers less than 1000 that are coprime to 36

OpenStudy (praxer):

yes !!

ganeshie8 (ganeshie8):

Notice that 36 = 2^2*3^2 that means every integer thats multiple of 2 or 3 will not be coprime with 36, yes ?

OpenStudy (praxer):

Yes it is ...

ganeshie8 (ganeshie8):

simply find out them and subtract from 1000 :)

ganeshie8 (ganeshie8):

1 <= 2k <= 1000 1 <= 3k <= 1000

ganeshie8 (ganeshie8):

also you need to subtract 6k to account for the double count

OpenStudy (praxer):

I am good with the net issue now. The fact is that I have another question where the limit of n is between 2 and 1000 but the solution is 332. So, I am finding it a bit confusing, cause there are 500 multiples of 2 between 1 and 1000 and 333 of 3 between 1 and 1000 and 166 of 6 between 1 and 1000. But solution is changed.

OpenStudy (praxer):

I mean the gcd of 1 and 36 is 1 right ? @ganeshie8

ganeshie8 (ganeshie8):

yeah solution changes because there is 1less number now thats coprime with 36 1 is coprime with 36

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!