Problem

Source: Rioplatense L2 2023 #6

Tags: algebra, function



Find all functions $f:\mathbb{Z} \rightarrow \mathbb{Z}$ such that $$f(x+f(y+1))+f(xy)=f(x+1)(f(y)+1)$$for any $x,y$ integers.