\(\text{Find all } n \in \mathbb{N} \text{ such that } d \mid n \text{ and }\) $$dn + 1 \mid d^2 + n^2.$$