Acquiring Wisdom Costs Money and Time
Convert to Base 10
Example: 35210
3 * 10 5 * 10 2 * 10
= (3 × 10²) + (5 × 10¹) + (2 × 10⁰)
= 300 + 50 + 2
= 352
Number in binary to decimal
Example: 10112
1 * 2 0 * 2 1 * 2 1 * 2
= (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰)
= 8 + 0 + 2 + 1
= 11₁₀
In hexadecimal:
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
Octal Number (base 8) to decimal
Example: 2378
2 * 8 3 * 8 7 * 8
= (2 × 8²) + (3 × 8¹) + (7 × 8⁰)
= 128 + 24 + 7
= 159₁₀
Example 1
Convert 3214 to decimal.
Solution
3×16+2×4+1
=48+8+1
=57₁₀
Example 2
Convert 57₁₀ to Base 4.
57÷4=14 remainder1
14÷4=3 remainder2
3÷4=0 remainder3
Answer 321₄
Example 3
Convert 111100₂ to decimal.
=32+16+8+4
=60₁₀
Example 4
Convert 255₁₀ to hexadecimal.
255÷16 =15 remainder15
15 = F
Answer FF₁₆
1. 25₁₀ to binary
2. 64₁₀ to base 4
3. 100₁₀ to octal
4. 85₁₀ to hexadecimal
5. 49₁₀ to base 3
Rule - Add the numbers first.
Then divide the result by the modulus and keep the remainder.
Formula
(a+b) mod n
Example 1
Find (8 + 9) mod 5
Solution
8 + 9 = 17
17 mod 5 = 2
Example 2
Find (12 + 15) mod 7
12 +15 =27
27 mod 7
=6
Example 3
Find (25 +18) mod 10
25+18=43
43 mod10=3
Rule - Subtract first.
If the answer is negative, add the modulus until the answer becomes positive.
Formula
(a − b) mod n
Example 1
Find (14−8) mod 5
14−8 = 6
6 mod 5 = 1
Answer: 1
Example 2
Find (9 − 15) mod 7
9 −15 = -6
Add 7
-6+7=1
Answer: 1
Example 3
Find (20−33) mod 8
20−33 = -13
-13+8= -5
-5+8= 3
Answer: 3
Rule - Multiply first.
Then divide by the modulus and take the remainder.
Formula
(a * b) mod n
Example 1
Find (6×7) mod 5
6×7= 42
42 mod 5 = 2
Answer: 2
Example 2
Find (9×8) mod 7
9×8=72
72 mod 7=2
Answer: 2
Example 3
Find (13×12) mod 10
13×12=156
156 mod10=6
Answer: 6
A: Find the Modulo
1. 18 mod 5
2. 42 mod 8
3. 63 mod 7
4. 100 mod 9
5. 77 mod 6
B: Addition
1. (12+8) mod 5
2. (25+14) mod 7
3. (40+33) mod 9
4. (19+22) mod 6
5. (31+28) mod 10
C: Subtraction
1. (18−9) mod 4
2. (15−22) mod 6
3. (28−16) mod 7
4. (45−31) mod 8
5. (20−27) mod 9
D: Multiplication
1. (5×8) mod 6
2. (9×6) mod 7
3. (12×13) mod 8
4. (15×9) mod 11
5. (17×5) mod 9
For any difficulty, contact us at contact@mathandphysics.online and please give us 72 hours for response. Thank you.