\(A=\frac{5^{2016}+1}{5^{2017}+1}\)
\(\Rightarrow5A=\frac{5^{2017}+5}{5^{2017}+1}=1+\frac{4}{5^{2017}+1}\)
\(B=\frac{5^{2017}+1}{5^{2018}+1}\)
\(\Rightarrow5B=\frac{5^{2018}+5}{5^{2018}+1}=1+\frac{4}{5^{2018}+1}\)
Do \(\frac{4}{5^{2018}+1}< \frac{4}{5^{2017}+1}\)
\(\Rightarrow5A>5B\Leftrightarrow A>B\)