Problem

Source: IMOC 2017 A5

Tags: fe, functional equation, algebra



Find all functions $f:\mathbb Z\to\mathbb Z$ such that $$f(mf(n+1))=f(m+1)f(n)+f(f(n))+1$$for all integer pairs $(m,n)$.