If you give me a 5, I give you a 21.
If you give me a 6, I give you a 2.
If you give me a 7, I give you a 12.
If you give me a 10, I give you a 101.
What am I processing to get the result?
Hint 1
If you give me a 3, I give you a 1.
Hint 2
This has some thing to do with a reversed 3.