Skip to main contentSkip to solution

The number of integers nn such that 1n1071 \leq n \leq 10^7 and gcd(n,107)=103\gcd(n, 10^7) = 10^3 is ___

Solution

Correct Option: 4

Need gcd(n,107)=103\gcd(n, 10^7) = 10^3, with 1n1071 \leq n \leq 10^7.

Since 10310^3 divides nn, write n=103mn = 10^3 \cdot m for some positive integer mm.


From n107n \leq 10^7:

m104m \leq 10^4

Also, gcd(103m,107)=103gcd(m,104)\gcd(10^3 \cdot m,\, 10^7) = 10^3 \cdot \gcd(m, 10^4).

For this to equal 10310^3, we need:

gcd(m,104)=1\gcd(m, 10^4) = 1

Since 104=245410^4 = 2^4 \cdot 5^4, this just means mm is coprime to 1010.


Count integers mm in [1,104][1, 10^4] coprime to 1010. The fraction of such integers is:

(112)(115)=1245=25\left(1 - \dfrac{1}{2}\right)\left(1 - \dfrac{1}{5}\right) = \dfrac{1}{2} \cdot \dfrac{4}{5} = \dfrac{2}{5}


Required count =10425=4000= 10^4 \cdot \dfrac{2}{5} = 4000

Answer =4000= 4000

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question