Let n≥2n \geq 2 be an integer. Determine the number of positive integers mm such that m≤nm \leq n and m2+1m^2 + 1 is divisible by nn.