I absolutely hate the digit 1
. So, I need your help to convert numbers to their "proper forms".
Numbers in proper form never have two 1
s in a row. 101
is okay, but 110
is hideous.
To convert, simply skip all the improper numbers and count normally. For instance...
1 -> 1
2 -> 2
...
10 -> 10
11 -> 12
12 -> 13
...
108 -> 109
109 -> 120
110 -> 121
111 -> 122
and so on.
Your program should take an integer and output it in proper form. This is code-golf, so shortest code in bytes wins.
109 -> 120
conversion... \$\endgroup\$