Here’s a conversation that took place between two students.
A: Hey, want to see a magic trick?
B: Sure, how does it go?
A: Think of any number. Any nonnegative integer, I should say.
B: Okay.
A: Multiply it by 3.
B: Okay....
A: Now divide it by 2, and if you get a decimal, then round down. Tell me if you rounded down or not.
B: I did have to round down.
A: Multiply it by 3 then divide it by 2 again. Again, tell me if you rounded down.
B: Okay, hang on... I did not have to round down this time.
A: Great, now just tell me: how many times does 9 go into this last number?
B: You want me to divide by 9?
A: Yes, just the quotient.
B: Um, the quotient is 4.
A: So your original number was 19.
B: That’s right! How did you do that? Let me think....
Can you figure out how it works?