Problem

Source: St. Petersburg MO 2001, 11th grade, P6

Tags: algebra, functional equation, function



Find all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ such that for any $x,y$ the following is true: $$f(x+y+f(y))=f(x)+2y$$proposed by F. Petrov