recategorized by
573 views

3 Answers

1 votes
1 votes
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
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)

Related questions

1 votes
1 votes
2 answers
1
admin asked Dec 15, 2022
742 views
What is the minimum number of nodes required in a DAG (Directed Acyclic Graph) for the following block?\[\begin{aligned}U=Z & =V+W \\X=Y & =U+1 \\A & =X+Y\end{aligned}\]
1 votes
1 votes
2 answers
2
admin asked Dec 15, 2022
375 views
What is the size of the physical address space in a paging system, which has a page table containing $64$ entries of $11$ bit each (including valid and invalid bit) and a...