Problem

ALG-B3-M05-P019 The Unit Shift

#19 Grade 10 Grade 11 ★★★★★ Level 5 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\).