question 1
Which slot does the method give the word row?
the answer, and why
the answer is A
r is 18: 0 times 31 plus 18 is 18, which leaves 5. Then 5 times 31 plus 15 is 170, which leaves 1. Then 1 times 31 plus 23 is 54, which leaves 2.
if you chose another
- That adds the letters, 56, and keeps the remainder. The method multiplies by 31 before each letter.
- That is the remainder of w's 23 after dividing by 13, the last letter alone. Multiplying by 31 keeps every letter in the value.
- That reads the letters from the last, w first, as wor. The method starts at the first letter.