4 of 4 added 96 characters in body

# Perl 6, 34 32 30 bytes

Thanks to nwellnhof for -2 bytes through the use of the o operator to combine functions

{S/.//}o{base :36(1~\$_)+1: 36}


Try it online!

Function that converts the argument to base 36, adds 1, converts back and then formats it. Now uses the same tactic as Adnan's answer to preserve the leading zeroes.

 answered Jul 28 '18 at 3:30 Jo King 37.3k44 gold badges8181 silver badges157157 bronze badges