n^(k-1) * lgn