encode in base49 with multiplication and division