Problem

ALG-B3-M05-P014 A Shift and a Product

#14 Grade 10 Grade 11 ★★★★☆ Level 4 of 5

Find all \(f:\mathbb Q\to\mathbb Q\) such that \(f(x+y)=f(x)+f(y)-1\) and \(f(xy)=f(x)f(y)-f(x)-f(y)+2\).