Problem

Source: Belarusian National Olympiad 2022

Tags: number theory



Positive integers $a$ and $b$ satisfy the equality $a+d(a)=b^2+2$ where $d(n)$ denotes the number of divisors of $n$. Prove that $a+b$ is even.