Last two digits mod 100 problem

  • Thread starter timetraveller123
  • Start date
In summary, the question asks for the last two digits of x. Homework equations state that φ(n) = n * (Σ (1 - 1/p) ) where p are the distinct prime factors of n. The totient function, gcd(a,n), is defined to be 1. The Attempt at a Solution states that typically this kind on question would solve it like say 1940 ≡ 1 mod(100). However, here the exponent is not a simple multiple of 40 or near multiples of 40, so how the am i supposed to do this. Another method is to try considering ##19 = (20-1)## and performing a binomial expansion of the expression. The mod
  • #1
timetraveller123
621
45

Homework Statement


upload_2017-5-29_21-33-4.png

the question requires you to find the last two digits of x

Homework Equations


φ(n) = n * (Σ (1 - 1/p) ) where p are the distinct prime factors of n the totient function

gcd(a ,n) = 1

aφ(n)≡ 1 mod n

The Attempt at a Solution


typically this kind on question i would solve it like say

1940 ≡ 1 mod(100)

but here the exponent is not a simple multiple of 40 or near multiples of 40 then how am i supposed to do this
 
Physics news on Phys.org
  • #2
What is the order of evaluation, right to left or left to right? Either way, the problem could be solved with a program that uses repeated squaring to raise a number to a power modulo 100.
 
  • #3
um this is olympaid question with no calculator
 
  • #4
I would start at the bottom. What can you do with 19k mod 100?
 
  • #5
While studying the repetition period of the powers is a possible method, it can still get rather tedious (especially if you need to do it by hand in a time limited situation).

Another method is to try considering ##19 = (20-1)## and performing a binomial expansion of the expression. The modulo arithmetic kills off most of the terms in the expansion.
[Subsequent hint is to next decompose ##17 = \left(15 + 2 \right)##.]
 
  • #6
Fightfish said:
try considering 19=(20−1)
Yes, that's what I was hinting at in post #4.

Also, I suggest a convenient notation will make the writing out easier. I wrote @19=19@17, etc., and used % for modulo. Thus, the question is expressed as @19%100 (@ takes precedence over %).
 
  • #7
haruspex said:
Yes, that's what I was hinting at in post #4.
Ah okay, I was wondering whether you meant that or to look for the repetition cycles (the latter of which I actually tried, and its, well, not that bad I guess).
 
  • #8
Fightfish said:
Ah okay, I was wondering whether you meant that or to look for the repetition cycles (the latter of which I actually tried, and its, well, not that bad I guess).
Fair enough.
 
  • #9
@haruspex
19k mod 100 oscillates between 9 and 1 depending on whether k is odd or even respectively
 
  • #10
vishnu 73 said:
@haruspex
19k mod 100 oscillates between 9 and 1 depending on whether k is odd or even respectively
No, that would be mod 10. Use @Fightfish's stronger hint, the binomial expansion of (20-1)k.
 
  • #11
well
202 ≡ 0 mod 100
subsequently for n ≥2
20n ≡0 mod 100

then only the last two terms in the binomial expansion survive
(20 -1)k mod 100= k (20) (-1)k-1 + (-1)k mod 100
since k is odd here

19k ≡ 20k -1 mod 100

then how to proceed if this is correct
 
  • #12
Starting with the first power, k=17, that is, 1917=20*17-1 mod 100. Now raise it to the 15th power. (hint: 17=20-3).
 
Last edited:
  • #13
ehild said:
Starting with the first power, k=17, that is, 1917=20*17-1 mod 100. Now raise it to the 15th power. (hint: 17=20-3).
No. It is 19(17(15..., not ((1917)15...)
 
  • #14
vishnu 73 said:
well
202 ≡ 0 mod 100
subsequently for n ≥2
20n ≡0 mod 100

then only the last two terms in the binomial expansion survive
(20 -1)k mod 100= k (20) (-1)k-1 + (-1)k mod 100
since k is odd here

19k ≡ 20k -1 mod 100

then how to proceed if this is correct
Right, so using my notation we have @19%100=(20@17-1)%100=20@17%100-1 (yes?).
Can you take the 20 out as a factor, i.e. write 20k mod 100 (=20@17%100) as 20(some expression)?
 
  • #15
vishnu 73 said:
19k ≡ 20k -1 mod 100

then how to proceed if this is correct

[tex]17^{15^{13^{11^{9^{7^{5^{3^{1}}}}}}}}=17^M[/tex], the right side is 19 on some power of 17.
You got ##19^k=20k-1##. For k=17, ##19^k=20*17-1##. Following @haruspex's hint write 17=20-3 , so 1917=20*(20-3) - 1 = - 61 mod 100 or 39 mod 100. Raise 39 mod 100 to the 17th power again, and again, and find the period of the repetition cycle.
 
  • #16
haruspex said:
Right, so using my notation we have @19%100=(20@17-1)%100=20@17%100-1 (yes?).
Can you take the 20 out as a factor, i.e. write 20k mod 100 (=20@17%100) as 20(some expression)?
sorry for the late reply in overseas

19@17 ≡ 20@17 -1 mod 100

isn't 20@17 mod 100 ≡0
then isn't 20@17 -1 mod 100 ≡ -1
what is happening?
 
  • #17
can some one explain to me because i kind of don't understand what i myself am doing

19k ≡ 20k -1 mod 100
this means when 19k is divided by 100 you get 20k -1 as remainder

but 20 k -1 can be bigger than hundred itself
so once again taking mod 100
since k = @17 bigger than 2
202≡ 0 mod 100

20k -1 mod 100 ≡ -1 mod 100
i am doing something terribly wrong what is it? point out to me?
 
  • #18
vishnu 73 said:
isn't 20@17 mod 100 ≡0
No. Perhaps my notation is too confusing. 20@17 stands for 20 times @17, i.e. 20 times 171513..., not 20@17.
 
  • #19
vishnu 73 said:
but 20 k -1 can be bigger than hundred itself
so once again taking mod 100
since k = @17 bigger than 2
202≡ 0 mod 100

20k -1 mod 100 ≡ -1 mod 100
Power is not product. If k is odd, 203=0 mod 100, but 20*3=60 mod 100, 20*5=0 mod 100, 20*7 =40 mod 100...
 
  • #20
oh you sorry i got confused with power and product there i reworked tell me if this correct thanks

so
19k ≡ 20k -1 mod 100

19@17 ≡ 20 @17 -1 mod 100

20@17 -1 mod 100 = 20@(20-3) -1 mod 100

20@(20-3) - 1 = 20 * (20 -3)m -1 where m is a positive integer

so every term but the last term in the binomial is killed because it has at least a 202 term in it the remaining modulo congruence can be written as

20*(-3)@15 -1 mod 100
now since 20 * k mod 100 has a repetition of 5 we only need to consider (-3)@15 mod 5

this is a cycle of
-3 , 4 ,-2 , 1 or 2,4,3,1

now we need to find @15 mod 4 = 15@13 mod 4 = (16 - 1)@13 mod 4 ≡ (-1) @13 mod 4

now since @13 is odd it gives a remainder of -1 or 3

so @15 mod4 ≡ 3
so 20(3) -1 to give a final remainder of 59 mod 100
is this correct?
 
  • Like
Likes haruspex
  • #21
vishnu 73 said:
final remainder of 59 mod 100
Well done.
 
  • Like
Likes mfb and timetraveller123
  • #22
well this is the given method while the answer is the same i don't get the method can someone explain to me

let a = @17 and b = @15 . since @13 is odd b = -1 mod 16
then considering the totient function
φ(100) = 40 φ(40) = 16
by euler theorem:
a= 17b ≡ 17-1 ≡ 33 mod 40

then 19a ≡ 1933 ≡ 59 mod 100

i understand little bit

why 17-1 ≡ 33 mod 40

then
why is 19a ≡ 1933 mod 40
 
  • #23
vishnu 73 said:
why 17-1 ≡ 33 mod 40
Because 17##\times##33≡ 1 mod 40.
vishnu 73 said:
why is 19a ≡ 1933 mod 40
Mod 100, not mod 40.
This is easily shown using 19=20-1. I would first reduce the preceding statement to a≡3 mod 5.
 
  • #24
haruspex said:
Because 17××\times33≡ 1 mod 40.
is it about multiplicative inverses

haruspex said:
Mod 100, not mod 40.
This is easily shown using 19=20-1. I would first reduce the preceding statement to a≡3 mod 5.
i am afraid i still don't understand
 
  • #25
vishnu 73 said:
is it about multiplicative inverses
Yes.
haruspex said:
I would first reduce the preceding statement to a≡3 mod 5.
The expression has been reduced to 1917-1 mod 100.
We have 17-1 ≡ 33 mod 40, but we do not need all that detail. It is enough that 17-1 ≡ 3 mod 5.
so it comes down to 195k+3 mod 100 ≡ (20-1)5k+3 mod 100 ≡ 20(5k+3)-1 ≡ 59.
 
  • Like
Likes timetraveller123
  • #26
The expression has been reduced to 1917-1 mod 100.
We have 17-1 ≡ 33 mod 40, but we do not need all that detail. It is enough that 17-1 ≡ 3 mod 5.
so it comes down to 195k+3 mod 100 ≡ (20-1)5k+3 mod 100 ≡ 20(5k+3)-1 ≡ 59.
now i get it thanks for the help
 
  • #27
just a quick proving could you help? thanks.so writing as polynomial
##
\begin{equation}
p(x) = \sum_{i =0}^{n}{a_i x^i}
\end{equation}
##
then by the given equation
a0 =1999
and
##
\begin{equation}
0 = \sum_{i =1}^{n}{a_i }
\end{equation}
##
rewriting it
##
p(x) = a_n \sum_{i = 1}^{n}{\frac{a_i}{a_n} x^i} + \frac{1999}{a_n}
##
now i hope to be able to prove using contradiction
how can i do it?
 

Attachments

  • upload_2017-6-6_1-2-4.png
    upload_2017-6-6_1-2-4.png
    9.7 KB · Views: 395
  • #28
vishnu 73 said:
just a quick proving could you help? thanks.so writing as polynomial
##
\begin{equation}
p(x) = \sum_{i =0}^{n}{a_i x^i}
\end{equation}
##
then by the given equation
a0 =1999
and
##
\begin{equation}
0 = \sum_{i =1}^{n}{a_i }
\end{equation}
##
rewriting it
##
p(x) = a_n \sum_{i = 1}^{n}{\frac{a_i}{a_n} x^i} + \frac{1999}{a_n}
##
now i hope to be able to prove using contradiction
how can i do it?
Please post as a new thread - forum rules.
 
  • #29
ok
 

1. What is the "Last two digits mod 100 problem"?

The "Last two digits mod 100 problem" is a mathematical problem that involves finding the remainder when the last two digits of a number are divided by 100. This can also be referred to as finding the last two digits of a number in mod 100 form.

2. How is the "Last two digits mod 100 problem" useful in real life?

The "Last two digits mod 100 problem" can be useful in situations where we need to quickly determine the last two digits of a large number without having to perform a full division. It can also be applied in cryptography, coding, and data analysis.

3. What is the formula for solving the "Last two digits mod 100 problem"?

The formula for solving the "Last two digits mod 100 problem" is to take the last two digits of the given number and find the remainder when divided by 100. This can be represented as (n % 100), where n is the given number.

4. Can the "Last two digits mod 100 problem" be applied to numbers with more than two digits?

Yes, the "Last two digits mod 100 problem" can be applied to numbers with more than two digits. However, the result will only give the remainder of the last two digits when divided by 100. For example, if the number is 123456, the result would be 56.

5. Are there any shortcuts or tricks for solving the "Last two digits mod 100 problem"?

Yes, there are some shortcuts and tricks that can be used to solve the "Last two digits mod 100 problem" more quickly. One such trick is to mentally multiply the last two digits by 4 and find the remainder when divided by 100. This can be used for numbers ending in 00, 25, 50, and 75. Another trick is to add the last two digits and find the remainder when divided by 4, and then use this result to find the remainder when divided by 25. This can be used for numbers ending in 01, 51, 76, and 26.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
Replies
1
Views
865
  • Precalculus Mathematics Homework Help
Replies
11
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
555
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
5K
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
Replies
13
Views
1K
  • Precalculus Mathematics Homework Help
Replies
22
Views
3K
  • Calculus and Beyond Homework Help
Replies
1
Views
823
Back
Top