Problem

Source: Baltic Way 2011

Tags: function, algebra proposed, algebra



Let $f:\mathbb{R}\to\mathbb{R}$ be a function such that \[f(f(x))=x^2-x+1\] for all real numbers $x$. Determine $f(0)$.