I have a question I can not answer myself. For every number from 1-5000 I write down the number of divisors. Example: 1 has 1 divisor, 2 has 2 and 10 has 4 (1, 2, 5, 10). I do this up to the number 5000. Know I want to know how many times the number of divisors is odd and how many times it is even.
I am looking forward to your thougts! Finn
Hint: $4$ has an odd number of divisors. (Why?)
Hint: $576$ has an odd number of divisors. (Why?)
But numbers like $12$ have an even number of divisors.
Each integer can be expressed as $n=ab$ (even if $a=1$ and $b=n$). So for every divisor $a$, there's a matching divisor $b$ such that $ab=n$.
What happens with numbers like $4$ and $576$ is that $a=b$ for one of the pairs, and you get an odd number of divisors overall.