question 1
Which slot does the method give the word gum?
the answer, and why
the answer is C
g is 7: 0 times 31 plus 7 is 7, which leaves 7. Then 7 times 31 plus 21 is 238, which leaves 4. Then 4 times 31 plus 13 is 137, which leaves 7.
if you chose another
- That adds the letters, 41, and keeps the remainder. The method multiplies by 31 before each letter.
- That is the remainder of m's 13 after dividing by 13, the last letter alone. Multiplying by 31 keeps every letter in the value.
- That reads the letters from the last, m first, as mug. The method starts at the first letter.