recategorized by
596 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

827
views
2 answers
1 votes
admin asked Dec 15, 2022
827 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}\]
433
views
2 answers
1 votes
admin asked Dec 15, 2022
433 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 page size of $256$ bytes.
513
views
1 answers
1 votes
admin asked Dec 15, 2022
513 views
The execution of a program occurs on a $250 \mathrm{~GHz}$ processor that executes millions of instructions. Type, $\text{CPI}$ (cycles per instruction) and ... and $\text{MIPS}$ (millions of instructions per second) rate of the processor.
394
views
1 answers
1 votes
admin asked Dec 15, 2022
394 views
A system $\mathrm{X}$ with $2 \mathrm{~GHz}$ clock speed runs a program in $10$ seconds. We want to build a system $\mathrm{Y}$ to run the same program in ... system $\mathrm{X}$. What should be the clock speed of the system $\mathrm{Y}?$