I can't seem to find a methodical/systematic way of solving:
How many integers $n$ are there with $4\le n\le 2019$ such that $\lfloor\sqrt n\rfloor\mid n$ and $\lfloor \sqrt {n+1}\rfloor\mid n+1$?
I found this question in the Philippine Math Olympiad 2020, Qualifying Rounds and I am lacking skills to find a method in answering this question.