4 added 96 characters in body

Perl 6, 34 323230 bytes

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

{substr S/.//}o{base( :36(1~$_)+1: 36),1}  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. Perl 6, 3432 bytes {substr base(:36(1~$_)+1: 36),1}


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.

Perl 6, 34 3230 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. 3 -2 Perl 6, 3434 32 bytes {substr base(:36($_1~$_)+1: 36).fmt("%010s"),1}  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. Perl 6, 34 bytes {base(:36($_)+1: 36).fmt("%010s")}


Try it online!

Function that converts the argument to base 36, adds 1, converts back and then formats it.

{substr base(:36(1~$_)+1: 36),1}  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. 2 -2 bytes Perl 6, 3634 bytes {base(:36(~$_$_)+1).base(: 36).fmt("%010s")}  Function that converts the argument to base 36, adds 1, converts back and then formats it. Perl 6, 36 bytes {(:36(~$_)+1).base(36).fmt("%010s")}


Try it online!

Function that converts the argument to base 36, adds 1, converts back and then formats it.

Perl 6, 34 bytes

{base(:36(\$_)+1: 36).fmt("%010s")}


Try it online!

Function that converts the argument to base 36, adds 1, converts back and then formats it.

1