4 ms·
The math as expressed in English in the original usenet post is ambiguous which confused me for a moment until I figured out what I was doing wrong. > Choose a
by cmiller1 3y ago
The math as expressed in English in the original usenet post is ambiguous which confused me for a moment until I figured out what I was doing wrong.
> Choose a 2-digit number, say 23, your “seed”.
> Form a new 2-digit number: the 10’s digit plus 6 times the units digit.
Here's where the ambiguity is, I interpreted this as (tens_digit+6)*units_digit so I did (2+6)*3=24
> The example sequence is 23 –> 20 –> 02 –> 12 –> 13 –> 19 –> 55 –> 35 –> …
24 != 20 so I had to walk back and figure out that they in fact meant tens_digit+(6*units_digit)