Neim, 7 bytes
'ÏðððŽSð
Explanation:
'Ï Push 345
The character ' pushes the next character's index in the codepage plus 100.
The characters ", + and * do that same thing except add a different number.
This means that in Neim, all 3 digit numbers can be expressed with 2 characters.
This commit was pushed 8 days before the answer was posted.
ð Get the characters
ð Vectorised multiply with the input
ðŽ Sum the resulting list
Sð Subtract the input
Alternative program: 3ðáððŽSð
Instead of pushing 345
and then getting the characters, creates the array [1 2 3]
using 3ð
, then addadds 2 to each element with á
.