Given the following 'joke' I stumbled across today
This calculation will tell you who you really are:
- Pick any number between 1 to 9.
- Now multiply it with 3.
- Add 3.
- Now again multiply it with 3.
- You will get 2 digits, now add them.
Now this number will tell you what you really are...
The rest is not really relevant, but it's easy enough to figure out that the answer is always 9
. However when I tried to 'prove' this for friends in an easy manner I stumbled upon two problems.
First of all I had to add the different parts, which I wasn't able to do with 'simple' maths, so I used $\lfloor \frac{x}{10} \rfloor + x \mod 10$. Due to the jump in mathematical functions I had no idea how to continue with 'pure mathematics' so I wanted to get WolframAlpha to simply do the work for me and spit out the number 9, but I wasn't able to get it to work only within $1\leq x \leq 9,\ x \in \mathbb{Z} $.
Either way, practically speaking I have
$\lfloor \frac{(x \times 3 + 3) \times 3}{10} \rfloor + ((x \times 3 + 3) \times 3 \mod 10)\ \ \ where\ 1\leq x \leq 9,\ x \in \mathbb{Z}$
How would one solve this, either using normal mathematics or how to get this inputted in WolframAlpha in a way it will be understood (here is the WA link without the restriction on $x$)?