1 of 3

Python 2, 39 bytes

f=lambda n:n and f(~-n/6)+`6-~-n%6`or''

Try it online!

Outputs 1-indexed number