added a mobius up to n function.