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.
Did the same:).
"The tens digit of the LHS is 0 and the units digit is 1." Why ??
We wish to compute 7 9 7 9 ( m o d 1 0 0 ) We use the Binomial Theorem. 7 9 7 9 = ( 8 0 − 1 ) 7 9 = ∑ i = 0 7 9 8 0 i ⋅ ( − 1 ) 7 9 − i . All of these terms are divisible by 100 except for the last two. The last two are 7 9 ⋅ 8 0 − 1 ≡ 1 9 ( m o d 1 0 0 ) , so 7 9 7 9 = 1 9 ( m o d 1 0 0 ) .
Wasn't the last two terms 8 0 ( − 1 ) 7 8 + ( − 1 ) 7 9 = 8 0 − 1 = 7 9 ?
I also have same doubt
C( 80, 1 ) =80 the binomial coefficient of last but one term. you are missing it.
Notice that, 7 9 7 9 ≡ ( − 2 1 ) 7 9 ( m o d 1 0 0 ) . And consider the following: ( − 2 1 ) 1 ( − 2 1 ) 2 ( − 2 1 ) 3 ( − 2 1 ) 4 ( − 2 1 ) 5 ( − 2 1 ) 6 ( − 2 1 ) 7 ( − 2 1 ) 8 ( − 2 1 ) 9 ( − 2 1 ) 1 0 ≡ − 2 1 ≡ 4 1 ≡ − 6 1 ≡ 8 1 ≡ 1 ≡ 2 1 ≡ − 4 1 ≡ 6 1 ≡ − 8 1 ≡ 1 ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 ) ( m o d 1 0 0 )
We see that ( − 2 1 ) n ( m o d 1 0 0 ) has a period of 10. Thus, 7 9 7 9 ≡ ( − 2 1 ) 7 9 ≡ ( − 2 1 ) 9 ≡ − 8 1 ≡ 1 9 ( m o d 1 0 0 ) . So, the last two digits are 19.
[LaTeX edits - Calvin]
Computing the last 2 digits is equivalent to find 7 9 7 9 ( m o d 1 0 0 ) . We know that 1 0 0 = 2 2 ⋅ 5 2 , so we can find the number ( m o d 4 ) and ( m o d 2 5 ) and we are done.
We know that ϕ ( 4 ) = 2 2 − 2 = 2 , so 7 9 7 9 ≡ 3 7 9 ≡ 3 ⋅ ( 3 3 9 ) 2 ≡ 3 ≡ 1 9 ( m o d 4 ) . Also, ϕ ( 2 5 ) = 5 2 − 5 = 2 0 so 7 9 7 9 ≡ 4 7 9 ≡ ( 4 − 1 ) ⋅ ( 4 4 ) 2 0 ≡ ( 4 − 1 ) ≡ 1 9 ( m o d 2 5 ) , as know that 4 ⋅ 1 9 = 7 6 ≡ 1 ( m o d 2 5 ) , thus 4 − 1 ≡ 1 9 ( m o d 2 5 ) Then, 7 9 7 9 ≡ 1 9 ( m o d 1 0 0 ) so 1 9 is the answer.
There are numerous ways to approach problems like this.
Direct application of Euler's Theorem to reduce the exponent.
Taking modulo arithmetic of the different prime powers and combining the result using the Chinese Remainder Theorem
Using the Binomial Theorem for suitable values of ( a + b ) n .
Calculating the exact period, though this becomes tedious for large numbers.
To look for the last 2 digits of 7 9 7 9 , it is the same as looking for the result modulo 100. By Euler's Theorem, 7 9 4 0 ≡ 1 ( m o d 1 0 0 ) , as g c d ( 7 9 , 1 0 0 ) = 1 , and ϕ ( 1 0 0 ) = 4 0 .
Thus 7 9 8 0 ≡ 1 ( m o d 1 0 0 ) , and 7 9 7 9 modulo 100 is the inverse of 79 modulo 100. It's easy to see that 7 9 × 8 1 ≡ − 1 ( m o d 1 0 0 ) . So 7 9 7 9 ≡ − 8 1 ( m o d 1 0 0 ) , or 7 9 7 9 ≡ 1 9 ( m o d 1 0 0 ) .
First of all, we know that compute the last 2 digits of 7 9 7 9 in the decimal representation is the same as calculating 7 9 7 9 ( m o d 1 0 0 ) , which is what we will do.
Is a well known fact that, for N ∈ N ∗ , ϕ ( N ) = N ( 1 − p 1 1 ) ( 1 − p 2 1 ) … ( 1 − p k 1 ) where the p i are all the distinct prime factors of N . So, since 1 0 0 = 2 2 ⋅ 5 2 , we have ϕ ( 1 0 0 ) = 1 0 0 ( 1 − 2 1 ) ( 1 − 5 1 ) = 4 0 , and then, since m d c ( 7 9 , 1 0 0 ) = 1 , using Euler's Theorem we have 7 9 ϕ ( 1 0 0 ) ≡ 1 ( m o d 1 0 0 ) ⟺ 7 9 4 0 ≡ 1 ( m o d 1 0 0 ) ⟹ 7 9 8 0 ≡ 1 2 ≡ 1 ( m o d 1 0 0 ) ⟹ 7 9 7 9 ⋅ 7 9 ≡ 1 ( m o d 1 0 0 ) ⟹ 7 9 7 9 ≡ 7 9 − 1 ( m o d 1 0 0 ) .
Then we need to calculate
7
9
−
1
(
m
o
d
1
0
0
)
, which can be done by applying the Extended Euclidean Algorithm:
We have the following equalities
1
0
0
=
7
9
×
1
+
2
1
⇒
2
1
=
1
0
0
−
7
9
7
9
=
2
1
×
3
+
1
6
⇒
1
6
=
7
9
−
2
1
×
3
2
1
=
1
6
×
1
+
5
⇒
5
=
2
1
−
1
6
×
1
1
6
=
5
×
3
+
1
⇒
1
=
1
6
−
5
×
3
So, starting from the last equality and then successively using the RHS of the last equality in the previous line, we have
1
=
1
6
−
5
×
3
=
1
6
−
(
2
1
−
1
6
)
×
3
=
1
6
×
4
−
2
1
×
3
=
(
7
9
−
2
1
×
3
)
×
4
−
2
1
×
3
=
7
9
×
4
−
2
1
×
1
5
=
7
9
×
4
−
(
1
0
0
−
7
9
)
×
1
5
=
7
9
×
1
9
−
1
0
0
×
1
5
Thus 7 9 × 1 9 − 1 0 0 × 1 5 ≡ 1 ( m o d 1 0 0 ) ⟺ 7 9 × 1 9 ≡ 1 ( m o d 1 0 0 ) ⟺ 7 9 − 1 ≡ 1 9 ( m o d 1 0 0 ) .
Therefore, 7 9 7 9 ≡ 7 9 − 1 ≡ 1 9 ( m o d 1 0 0 ) and the answer is 19 .
The last two digits of a number N is just N mod 100, so the problem is really asking for:
79^{79} \equiv x \pmod 100.
Euler's theorem states that a^{\phi(m)} \equiv 1 \pmod m if m and a are relatively prime. Since 79 and 100 are relatively prime, Euler's theorem is applicable.
/phi(N) is the number of numbers less than N that are relatively prime to N, which can also be expressed as N(1-1/p 1)(1-1/p 2)...(1-1/p i) where p 1,p 2,... p i are the distinct prime factors of N.
For the case N = 100, we find \phi(100) = 100(1-1/5)(1-1/2) = 100(4/5)(1/2) = 40.
So we know that 79^{40} \equiv 1 \pmod 100. Using the modulo rule for multiplication: 79^{40} \times 79^{39} \equiv x \pmod 100
79^{39} \equiv x \pmod 100.
Note that 79 = 80 - 1, so really we are solving: (80 - 1)^{39} \equiv x \pmod 100.
Begin to expand (80 - 1)^{39} to obtain
(-1)^{39}+39 80 (-1)^{38} + {39 \choose 2}(80^{2}(-1)^{37} + ....
But wait! Since 10 is a factor of 80, every term in the above expression that can be factored by 80^2 can also be factored by 10^2, which is 100!
This way, we can mod out all but the first two terms. So our new equation is
(-1)^{39} + 39 \times 80*(-1)^{38} \equiv x \pmod 100.
-1 + 3120 \equiv x \pmod 100. Mod out the 100's from 3120 to obtain
20 - 1 \equiv x \pmod 100.
19 \equiv x \pmod 100.
Therefore, the last two digits of 79^{79} = 19.
Checkout for your LaTeX language...
we get the last two digits of the ff: 79^1=79 79 79=41 41 79=39 39 79=81 81 79=99 99 79=21 21 79=59 59 79=61 61 79=19 19*79=01
and we will notice that the sequence will repeat after 10 multiplications. So we get 79th which is 19.
79=75+4 a number divided by 100 gives the numbers last 2 digits
79^79=((3
25)+4)^79 100=25
4
79^79=25
k+4^79
4^79=((4^5)^15)
4^4=(1024^15)
256=((1025-1)^15)
(250+6)
4^79=(25
a)-6
79^79=(25
m)-6
therefore last 2 digits may be
(25-6)or(50-6)or(75-6)or(100-6)
19 or 44 or 69 or 94
79^79=(80-1)^79=(4
20-1)^79=(4
n)-1
out of 19,44,69,94
the number of the form {(4*n)-1} is 19
therefore last 2 digits of 79^79=19
Computing for the last 2 digits of 7 9 7 9 by finding its product several times, we have the following: ⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ 7 9 2 = 4 1 7 9 3 = 3 9 7 9 4 = 8 1 . . . 7 9 9 = 1 9 7 9 1 0 = 0 1 Based from the cases, we found out that after multiplying 0 1 by 7 9 , the last two digits of 7 9 1 1 is 7 9 . Therefore, we are sure in this case that there are 1 0 products per cycle. Thus, 7 9 ( m o d 1 0 ) ≡ 9 ( m o d 1 0 ) ≡ 9 From the modulo operation above, it simply indicates of the last two digits of the 9 t h product. Hence, the answer is 1 9 .
to make last digit ending with 1 we have to select 79*79
79*79=-----41(last tow digit)
{( _ 41)raise to power39}*79
(40+1)raise to power 39=last to digit are 61 (by using binomial therom)
now 61*79=last digit are19(ans)
I have taken the concept of cyclicity in 2 digits rather than solving through mod theory ( congruences ). It means that i have followed the pattern of last 2 digits of consecutive powers of 79. The pattern which i get is as follows: 01,79,41,39,81,09,21,59,61,19,01.... Now by some logic we come to know that the last 2 digits of 79^70 are 01. And again skipping 9 powers means means skipping 9 last 2 digits which gives 19.
Solution 1: It is not hard to find high powers of 7 9 modulo 1 0 0 by repeated squaring. The following calculations can be easily done by hand using standard multiplication procedure, cut off at two digits.
7 9 2 ≡ 4 1 ( m o d 1 0 0 ) , 7 9 4 ≡ 4 1 2 ≡ 8 1 ( m o d 1 0 0 ) , 7 9 8 ≡ 8 1 2 ≡ 6 1 ( m o d 1 0 0 ) , 7 9 1 6 ≡ 6 1 2 ≡ 2 1 ( m o d 1 0 0 ) , 7 9 3 2 ≡ 2 1 2 ≡ 4 1 ( m o d 1 0 0 ) , 7 9 6 4 ≡ 4 1 2 ≡ 8 1 ( m o d 1 0 0 ) .
Because 7 9 = 6 4 + 1 5 , 7 9 7 9 ≡ 7 9 6 4 ⋅ 7 9 1 5 ( m o d 1 0 0 ) . To find 7 9 1 5 , we can first find 7 9 5 = 7 9 4 ⋅ 7 9 ≡ 8 1 ⋅ 7 9 ≡ 9 9 ≡ − 1 ( m o d 1 0 0 ) . Then 7 9 1 5 ≡ ( − 1 ) 3 ≡ − 1 ( m o d 1 0 0 ) and 7 9 7 9 ≡ 8 1 ⋅ ( − 1 ) ≡ 1 9 ( m o d 1 0 0 ) , so the answer is 1 9 .
For the following solutions let ϕ ( N ) be the number of integers less than N that are coprime to N (also known as Euler's Totient function). If N = p 1 q 1 p 2 q 2 … p n q n then ϕ ( N ) = N ( 1 − p 1 1 ) ( 1 − p 2 1 ) … ( 1 − p n 1 ) .
Solution 2: Since ϕ ( 1 0 0 ) = 1 0 0 ( 1 − 2 1 ) ( 1 − 5 1 ) = 4 0 , thus 7 9 7 9 ≡ 7 9 − 1 ⋅ 7 9 4 0 ⋅ 2 ≡ 7 9 − 1 ( m o d 1 0 0 ) by Euler’s Theorem. Since g cd ( 7 9 , 1 0 0 ) = 1 , thus a multiplicative inverse exists. We can calculate the inverse using the Euclidean Algorithm and get that:
\begin{array}{1,1} 100 &=& 79\times 1 + 21 \\ 79 &=& 21\times 3 + 16 \\ 21 &=& 16\times 1 + 5 \\ 16 &=& 5\times 3 + 1 \end{array}
Thus, the above shows that g cd ( 7 9 , 1 0 0 ) = 1 and we can calculate the inverse as follows:
\begin{array}{1,1} 1 & = & 16 - 5\times 3 \\ & = & 16 - (21-16\times 1)\times 3 \\ & = & 16\times 4 - 21\times 3 \\ & = & (79 - 21\times 3)\times 4 - 21\times 3 \\ & = & 79\times 4 - 21\times 15 \\ & = & 79\times 4 - (100-79)\times 15 \\ & = & 79\times 19 - 100\times 15 \end{array}
So we have, 1 ≡ 7 9 × 1 9 ( m o d 1 0 0 ) ⇒ 7 9 − 1 ( m o d 1 0 0 ) = 1 9 ( m o d 1 0 0 ) .
Solution 3: Since g cd ( 7 9 , 1 0 0 ) = 1 and ϕ ( 4 ) = 4 ( 1 − 2 1 ) = 2 , thus 7 9 7 9 ≡ 3 1 ≡ 3 ( m o d 4 ) . Since ϕ ( 2 5 ) = 2 5 ( 1 − 5 1 ) = 2 0 , thus 7 9 7 9 ≡ 4 1 9 ≡ 4 4 × 4 + 3 ≡ 2 5 6 4 × 6 4 ≡ 6 4 × 1 4 ≡ 1 9 ( m o d 2 5 ) . Since 1 9 ≡ 3 ( m o d 4 ) , thus 7 9 7 9 ≡ 1 9 ( m o d 1 0 0 ) .
Will this (inverse) be applicable only for power minus one (multiplicative inverse)....what if it is like this- 2 7 7 2 8 8 mod 100?.. @Calvin Lin
Use Euler's Totient Theorem with n = 2 0 0 and a = 7 9 (per the wiki), we get that 7 9 8 0 m o d 2 0 0 ≡ 7 9 8 0 m o d 1 0 0 ≡ 0 1 . Upon realizing that 7 9 × 1 9 m o d 1 0 0 ≡ 0 1 , we are done.
We have 7 9 ϕ ( 1 0 0 ) = 7 9 4 0 ≡ 1 ( m o d 1 0 0 ) . Also, 1 9 ∗ 7 9 = ( 2 0 − 1 ) ∗ ( 8 0 − 1 ) ≡ 1 ( m o d 1 0 0 ) . Thus 7 9 7 9 ≡ 1 9 ∗ 7 9 8 0 ≡ 1 9 ∗ ( 7 9 4 0 ) 2 ≡ 1 9 ( m o d 1 0 0 )
By Euler's Theorem, (Totient Function of 100 is 40)
"79^40 is congruent to 1 (mod 100)"
Square both sides, you'll get: "79^80 is congruent to 1 (mod 100)"
I'm now looking for a number that is congruent to 1 mod(100) and also divisible by 79:
I tried 79*9=711, but it's not congruent to 1 (mod100)
I tried 79*19= 1501, It's now congruent to 1 (mod100)
Going back to "79^80 is congruent to 1 (mod 100)"
It can also be "79^80 is congruent to 1501 (mod 100)"
Dividing both sides by 79, It will now be "79^79 is congruent to 19 (mod 100).
Therefore, the last two digits of 79^79 is 19.
79^80=1(mod 100), 19*79=1(mod 100), 79^79=19(mod 100)
By Euler's Theorem, 7 9 4 0 ≡ 1 ( m o d 1 0 0 ) , so 7 9 8 0 ≡ 1 ( m o d 1 0 0 ) . One can find that the modular inverse of 7 9 modulo 1 0 0 is 1 9 , so 7 9 7 9 ≡ 7 9 8 0 ⋅ 1 9 ≡ 1 9 ( m o d 1 0 0 ) .
⇒ ⇒ ⇒ 7 9 7 9 ≡ 7 9 1 ≡ x ( m o d 1 0 0 ) 1 ≡ 7 9 x ( m o d 1 0 0 ) 1 = 7 9 x + 1 0 0 y x ≡ 1 9 ( m o d 1 0 0 )
The Extended Euclidean Algorithm is used to solve the linear diophantine equation for x .
Hence, the answer is 1 9
9^79 = ...89 -> so 1. one is 9 and we have carry 8; loop: 7 9 = ...3 - odd products; 3 9 = ...7 - even products; 79 is odd, so odd product and so 3+8(carry) = ...1 and so 19
Problem Loading...
Note Loading...
Set Loading...
Think of the question like this: find 7 9 7 9 ( m o d 1 0 0 ) . We know g cd ( 7 9 , 1 0 0 ) = 1 . Also, ϕ ( 1 0 0 ) = 1 0 0 ( 1 − 2 1 ) ( 1 − 5 1 ) = 4 0 . Therefore, by Euler's Theorem, 7 9 4 0 ≡ 1 ( m o d 1 0 0 ) . Applying this to the problem, 7 9 7 9 × 7 9 ≡ ( 7 9 4 0 ) 2 ≡ 1 . Let a b = 7 9 7 9 , where b may be zero. Note that we can assume a one- or two-digit number because in mod 100 every number can be written as a positive integer less than 100. We now have 7 9 × a b ≡ 1 ( m o d 1 0 0 ) . The tens digit of the LHS is 0 and the units digit is 1. Since the only digit that gives us a units digit of 1 when multiplied by 9 is 9 itself, we know that b=9. From there, we can test different different values of a starting with 0 and see which satisfies the equation. If you want to do it in a more orderly fashion, rewrite the equation as ( 7 0 + 9 ) ( 1 0 a + 9 ) ≡ 1 0 0 ( 7 a + 7 ) + 1 0 ( 9 a + 1 ) + 1 ( m o d 1 0 0 ) and you find that the tens digit is 0 when a=1. Either way, you find that a=1 and b=9. Therefore, a b ≡ 7 9 7 9 ≡ 1 9 ( m o d 1 0 0 ) . The last 2 digits are 19.