question 1
Which slot does the method give the word fun?
the answer, and why
the answer is A
f is 6: 0 times 31 plus 6 is 6, which leaves 6. Then 6 times 31 plus 21 is 207, which leaves 12. Then 12 times 31 plus 14 is 386, which leaves 9.
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 n's 14 after dividing by 13, the last letter alone. Multiplying by 31 keeps every letter in the value.
- That reads the letters from the last, n first, as nuf. The method starts at the first letter.