7 and 500, Modulo Challenge

Find the least positive integer x x such that 7 x 1 ( m o d 500 ) 7^{x} \equiv 1 \pmod {500} .


The answer is 20.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Pi Han Goh
Feb 24, 2014

By Carmichael function , there exist a positive integer n n such that 7 λ ( n ) 1 ( m o d n ) 7^{\lambda (n)} \equiv 1 \pmod {n} for gcd ( 7 , n ) = 1 \text{gcd}(7,n) = 1

Because 500 = 2 2 × 5 3 500 = 2^2 \times 5^3 ,

λ ( 500 ) = lcm ( λ ( 2 2 ) , λ ( 5 3 ) ) = lcm ( ϕ ( 2 2 ) , ϕ ( 5 3 ) ) = lcm ( 2 , 100 ) = 100 \begin{aligned} \lambda (500) & = & \text{lcm} \left ( \lambda (2^2) , \lambda (5^3) \right ) \\ & = & \text{lcm} \left ( \phi (2^2), \phi(5^3) \right ) \\ & = & \text{lcm} \left ( 2, 100 \right ) \\ & = & 100 \\ \end{aligned}

So 7 100 1 ( m o d 500 ) 7^{100} \equiv 1 \pmod{500} or 7 100 1 0 ( m o d 500 ) 7^{100} - 1 \equiv 0 \pmod{500} ,

Note that the last digit of 7 x 7^x are 7 , 9 , 3 , 1 , 7 , 9 , 3 , 1 , 7,9,3,1,7,9,3,1, \ldots with period 4 4 , knowing that the last digit of ( 7 x 1 ) \left ( 7^x -1 \right ) is 0 0 then x x must be a multiple of 4 4

Consider modulo 500 500 , for a certain positive integer m m , 7 4 m 1 ( 7 4 ) m 1 ( 99 ) m 1 ( 1 ) m ( 100 1 ) m 1 7^{4m} - 1 \equiv (7^4)^m - 1 \equiv (-99)^m - 1 \equiv (-1)^m (100 - 1)^m - 1

Trial and error shows that the smallest m m is 5 5 , hence x = 4 m = 20 x = 4m = \boxed{20}

This is how I solved it. The function makes life easier.

Sharky Kesa - 7 years, 3 months ago

7^0=1 Isnt it least?

Saiyam Shah - 7 years, 2 months ago

Log in to reply

0 0 is not positive (nor negative).

Pi Han Goh - 7 years, 2 months ago
Christopher Boo
Feb 24, 2014

7 x 1 (mod 500) 7 x 1 = 500 k 7^x\equiv1\text{ (mod 500)} \Rightarrow 7^x-1=500k for k k is a positive integer.

Consider the pattern of the last digit of 7 x 7^x :

7 1 7 7^1\rightarrow7

7 2 9 7^2\rightarrow9

7 3 3 7^3\rightarrow3

7 4 1 7^4\rightarrow1

The last digit of RHS \text{RHS} , 500 k 500k is 0 0 .

The last digit of LHS \text{LHS} , 7 x 1 7^x-1 is also 0 0 if and only if x x is divisible by 4 4 .

Let x = 4 m x=4m , and substitute into the previous expression,

7 4 m 1 = 500 k 7^{4m}-1=500k

( 7 m 1 ) ( 7 m + 1 ) ( 7 2 m + 1 ) = 2 2 × 5 3 × k (7^m-1)(7^m+1)(7^{2m}+1)=2^2\times5^3\times k

LHS \text{LHS} is divisible by 2 2 × 5 3 2^2\times5^3

For 2 2 2^2 , 7 m 1 7^m-1 and 7 m + 1 7^m+1 are both even numbers so their product is divisible by 4 4 .

For 5 3 5^3 , the power of 7 7 must be in the form of 4 n + 2 4n+2 for the last digit of ( 7 m + 1 ) (7^m+1) or ( 7 2 m + 1 ) (7^{2m}+1) be 0 0 that can be divisible by 5 5 . Furthermore, to get a smaller m m , we choose to let 7 2 m + 1 7^{2m}+1 divisible by 5.

7 2 m + 1 7^{2m}+1

= 4 9 m + 1 =49^m+1

= ( 50 1 ) m + 1 =(50-1)^m+1

= ( m 0 ) ( 1 ) 0 5 0 m + ( m 1 ) ( 1 ) 1 5 0 m 1 + ( m 2 ) ( 1 ) 2 5 0 m 2 + . . . + ( m m 1 ) ( 1 ) m 1 ( 50 ) 1 ={m \choose 0}(-1)^050^m+{m \choose 1}(-1)^150^{m-1}+{m \choose 2}(-1)^250^{m-2}+...+{m \choose m-1}(-1)^{m-1}(50)^1

Every terms except the last can be divisible by 5 3 = 125 5^3=125 .The last term, which is ( m m 1 ) ( 1 ) m 1 ( 50 ) 1 {m \choose m-1}(-1)^{m-1}(50)^1 , can be divisible by 125 125 if only ( m m 1 ) m \choose m-1 can be divisible by 5 5 , then the smallest possible value of m m will be 5 5 . Now, the whole expression is divisible by 5 3 = 125 5^3=125 .

Substitute m = 5 m=5 ,

x = 4 m = 20 x=4m=20

Shuchit Khurana
Apr 29, 2014

7^x=500k+1 units digit of 7^x has to end with 1. Hence x is a multiple of 4. 7^4n=500k+1 (2401)^n=500k+1 2401^2 ends with 801 2401^4 will end with 1201(pattern)..and 2401^20 will end with 2001 Thats how we do questions like a boss.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...