lnq function

Logarithm of order q