What are the last three digits of 7 9 9 9 9 ?
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.
7
2
0
≡
1
(
m
o
d
1
0
0
0
)
=
>
(
7
2
0
)
4
9
9
≡
1
4
9
9
(
m
o
d
1
0
0
0
)
=
>
7
9
9
8
0
≡
1
(
m
o
d
1
0
0
0
)
=
>
7
9
9
8
0
×
7
1
9
≡
7
1
9
(
m
o
d
1
0
0
0
)
=
>
7
9
9
9
9
≡
7
1
9
(
m
o
d
1
0
0
0
)
7
2
≡
4
9
(
m
o
d
1
0
0
0
)
=
>
7
4
≡
4
0
1
(
m
o
d
1
0
0
0
)
=
>
7
8
≡
8
0
1
(
m
o
d
1
0
0
0
)
=
>
7
1
6
≡
6
0
1
(
m
o
d
1
0
0
0
)
=
>
7
1
9
≡
6
0
1
×
3
4
3
(
m
o
d
1
0
0
0
)
=
>
7
1
9
≡
1
4
3
(
m
o
d
1
0
0
0
)
T
h
e
r
e
f
o
r
e
,
7
9
9
9
9
≡
1
4
3
(
m
o
d
1
0
0
0
)
gcd ( 7 , 1 0 0 0 ) = 1 ⟹ 7 λ ( 1 0 0 0 ) ≡ 1 ( m o d 1 0 0 0 ) ⟹ 7 1 0 0 ≡ 1 ( m o d 1 0 0 0 ) ⟹ 7 9 9 9 9 ≡ 7 9 9 ( m o d 1 0 0 0 ) Using Chinese remainder theorem this is equivalent to finding { 7 9 9 ( m o d 8 ) 7 9 9 ( m o d 1 2 5 ) 7 9 9 ≡ ( − 1 ) 9 9 ≡ − 1 ( m o d 8 ) gcd ( 7 , 1 2 5 ) = 1 ⟹ 7 λ ( 1 2 5 ) ≡ 1 ( m o d 1 2 5 ) ⟹ 7 1 0 0 ≡ 1 ( m o d 1 2 5 ) ⟹ 7 9 9 ≡ 7 − 1 ≡ 1 8 ( m o d 1 2 5 ) { 7 9 9 ≡ − 1 ( m o d 8 ) 7 9 9 ≡ 1 8 ( m o d 1 2 5 ) ⟹ 7 9 9 ≡ 1 4 3 ( m o d 1 0 0 0 )
Disclaimer:This solution is the result of having too much time to spare in the early morning.
very nice,neat and perfect solution...+1
How to calculate lambda ?? i cant get it because i generally use euler's phi function ?? is that similar ?
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Euler's Theorem
Since 7 and 1000 are coprime integers, we can use Euler's theorem and ϕ ( 1 0 0 0 ) = 4 0 0 . Let x = 7 9 9 9 9 ; then we have:
x 7 x ⟹ 7 x 7 ⋅ 1 4 3 ⟹ 7 9 9 9 9 ≡ 7 9 9 9 9 ( m o d 1 0 0 0 ) ≡ 7 1 0 0 0 0 ( m o d 1 0 0 0 ) ≡ 7 1 0 0 0 0 m o d 4 0 0 ( m o d 1 0 0 0 ) ≡ 1 ( m o d 1 0 0 0 ) ≡ 1 0 0 1 ≡ 1 ( m o d 1 0 0 0 ) ≡ x ≡ 1 4 3 ( m o d 1 0 0 0 )