Exact results in the theory of intermediate statistics