One way this could be written more in keeping with the "when successively different values of the logw are specified" is perhaps:

and so on similarly for n=3, this function is 3-fold period and 3 values are bounced around ad infinitum.

Hence we only need assume k=0,....,n-1 to arrive at all the distinct values.