6. For each integer $n \geq 1$, define $a_{n}=\left[\frac{n}{[\sqrt{n}]}\right]$, where $[x]$ denotes the largest integer not exceeding $x$, for any real number $x$. Find the number of all $n$ in the set $\{1,2,3, \ldots, 2010\}$ for which $a_{n}>a_{n+1}$.