a: f(1)=1
=>\(a\cdot1^2+b\cdot1+1=1\)
=>a+b=0
f(-1)=3
=>\(a\cdot\left(-1\right)^2+b\cdot\left(-1\right)+1=3\)
=>a-b=2
mà a+b=0
nên \(a=\dfrac{2+0}{2}=1;b=2-1=1\)
b: a=1 và b=1 nên \(f\left(x\right)=x^2+x+1\)
\(\Leftrightarrow\dfrac{n}{f\left(n\right)}=\dfrac{n}{n^2+n+1}\)
Gọi d=ƯCLN(n^2+n+1;n)
=>\(\left\{{}\begin{matrix}n^2+n+1⋮d\\n⋮d\end{matrix}\right.\)
=>\(\left\{{}\begin{matrix}n^2+n+1⋮d\\n\left(n+1\right)⋮d\end{matrix}\right.\)
=>\(\left(n^2+n+1\right)-n\left(n+1\right)⋮d\)
=>\(1⋮d\)
=>d=1
=>ƯCLN(n^2+n+1;n)=1
=>\(\dfrac{n}{f\left(n\right)}=\dfrac{n}{n^2+n+1}\) là phân số tối giản