question 1
Which slot does the method give the word ice?
the answer, and why
the answer is A
i is 9: 0 times 31 plus 9 is 9, which leaves 9. Then 9 times 31 plus 3 is 282, which leaves 9. Then 9 times 31 plus 5 is 284, which leaves 11.
if you chose another
- That adds the letters, 17, and keeps the remainder. The method multiplies by 31 before each letter.
- That is the remainder of e's 5 after dividing by 13, the last letter alone. Multiplying by 31 keeps every letter in the value.
- That reads the letters from the last, e first, as eci. The method starts at the first letter.