A number theory problem by Brilliant Member

How many positive integers $$n$$ exist such that $$n^2+1$$ is divisible by $$n+1$$.

×