Question: Compute n div d and n mod d for each pair of n and d given below. (a) n = 20, d = 10


Compute n div d and n mod d for each pair of n and d given below. (a) n = 20, d = 10 20 div 10 = (d) 20 mod 10 = (b) n 79, d = 8 79 div 8 = 79 mod 8 = (c) n = 2, d = 12 2 div 12 = 2 mod 12 = = -30, d = 6 -30 div 6 = -30 mod 6 = Suppose we have integers a and b such that the remainder when a is divided by 7 is 2 and the remainder when bis divided by 7 is 5. (That means that a mod 7 = 2 and b mod 7 = 5.) Determine each of the following: (a + a) mod 7 = (a + b) mod 7 = (3a) mod 7 = (2b) mod 7 = a mod 7 =
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
