I am a student in High School. My math professor made a magic trick the other day in my class and he read our minds. I knew a similar trick which was based on mathematics, that's why I am asking here.
He told as to choose a random positive number and keep it secret in our mind. Then he told us to multiply or subtract any number we want and after a few times, he could guess our number.
The similar "magic trick" I knew, asked for a number like before, but somewhere in the middle asked to subtract by the initial number we have in our minds. This time was different.
Edit:
The teacher guess the final number only. Not the number he had in our mind. Here are a few of his orders as I have them on my notebook.
Choose a number -> add any number you want -> multiply by any number -> sum to one digit -> multiply again by any number -> multiply by 3 -> multiply by 3 -> sum to one digit -> I have to add 1 and the student next to me to subtract by 4 -> then he guess that I have 10 and it is the double of the student next to me who had 5.
Choose a number -> multiply by any number -> add any number -> sum to one digit -> multiply by 3 -> multiply by 6 -> divide by 2 -> sum to one digit -> multiply by 2 -> add the number 2 -> he guess that I have the number 20.
This problem reminds me my own math teacher from several years before.
Let's say that the number you have in your mind is "x".
I can start with "multiply with any number you want" and you have now 2x for example. Then again, "multiply with any number you want" and you have now 5(2x) for example. Now, add any number and you are on [5(2x)]+8, if you chose the 8. Now, sum all the digits until you have one only digit.
Until now, I don't have a clue about your number. Anyone cannot have a clue.
But, add one number and you have for instance y+3. Now, multiply by 9 and you have (y+3)*9. You saw that? It was the first time I asked you to multiply by a specific number. Now, sum all the digits until you have one only digit.
And here you are. Now your number is 9. If you multiply every positive number with 9 and then sum its digits, you will always end up with 9 again.
My teacher used to add a few more numbers to avoid the 9 as a results each time.
For instance, add the number 4. And then, he said, the number in your mind is the 13.