in Quantitative Aptitude recategorized by
560 views
1 vote
1 vote
Compute the following: $3^{32} \bmod 80$.
in Quantitative Aptitude recategorized by
by
560 views

3 Answers

1 vote
1 vote
In the first method, we used the property (a * b) % m = (a % m * b % m) % m to compute 3^32 mod 80 as follows:

3^32 % 80 = (3^16 % 80 * 3^16 % 80) % 80 = (10304 % 80 * 10304 % 80) % 80 = (24 * 24) % 80 = 576 % 80 = 16

In the second method, we used the fact that 3^2 = 9 mod 80 to rewrite 3^32 as (3^2)^16, and then used the property (a^b) % m = (a % m)^b % m to compute 3^32 mod 80 as follows:

3^32 % 80 = (3^2)^16 % 80 = (9^16) % 80 = (6561^8) % 80 = (2401^8) % 80 = (1^8) % 80 = 1 % 80 = 1

Both of these methods are valid and will give the correct result, which is 3^32 mod 80 = 16.

 

@gatecse correct me if i m wrong

4 Comments

@DebRC I am not sure of it. I also would follow @ankitgupta.1729 Sir’s approach to this q. 

1
1

@Hira Thakuryou can check it by both method for large value  like in this question.

u get unexpected result from the limited calculator this give overflow

0
0

“just putting value in the gate calculator always gives the correct result??”

No, for this question, it would work but not for all the similar questions. Mod is defined for integers and if your calculator shows some numbers in the form of “E” as @Abhrajyoti00 has mentioned, it means that number is written in power of 10 with some decimal number and so we can’t get the exact result.

Here, you can get the integer value for $3^{32},$ So you can get the correct answer on your gate calculator.

If the number is big and still you have to use your gate calculator without any error then you can use the “repeating squaring” method.

For example, if the question is $3^{128} \mod 80$ then your gate calculator would not work but still you can use the gate calculator as:

 $3^{128} \mod 80 = (3^{64} \mod 80 \times 3^{64} \mod 80) \mod 80$

 $= ((3^{32} \mod 80 \times 3^{32} \mod 80) \mod 80  \times (3^{32} \mod 80 \times 3^{32} \mod 80)\mod 80 ) \mod 80$

Now, using gate calculator, $3^{32} \mod 80 = 1$

And So, your answer should be $1.$

1
1
0 votes
0 votes
3^32 = (3^4)^8 = 81^8  , So 3^32 mod 80 = 81^8 mod 80

Now , a^b mod m = ((a mod m) . (a mod m)... b times) mod m) , so 81^8 mod 80 = ((81 mod 80) . (81 mod 80)...8times ) mod 80

81 mod 80 = 1

(1.1.1.1.1.1.1.1 )mod 80 = 1 (Ans)
by
0 votes
0 votes

332 ≅ (34)8 mod 80 ≅ (81)8 mod 80 ≅ 1 mod 80

Hence ans is 1

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true