If then . So the inverse function to is given by .
But if then the maps repeat with period 30. Therefore , where . I think that's the least painful way to calculate .
You can check this by using HallsofIvy's calculation for to see that . This turns out to be the same as . So in fact the s repeat with period 6.