Ta có \(2015^2=\left(2014+1\right)^2=2014^2+2.2014+1\)
=> \(2014^2+1=2015^2-2.2014\)
=> \(B=\sqrt{1+2014^2+\frac{2014^2}{2015^2}}+\frac{2014}{2015}\)
= \(\sqrt{2015^2-2.2014+\frac{2014^2}{2015^2}}+\frac{2014}{2015}\)
= \(\sqrt{\left(2015-\frac{2014}{2015}\right)^2}+\frac{2014}{2015}\) = \(2015-\frac{2014}{2015}+\frac{2014}{2015}\)
= \(2015\) là số nguyên
=> đpcm
Đặt: n=2014
Ta có: \(1+n^2+\left(\frac{n}{n+1}\right)^2=\frac{\left(n+1\right)^2+n^2\left(n+1\right)^2+n^2}{\left(n+1\right)^2}\)
\(=\frac{\left(n+1\right)^2+n^2\left(n^2+2n+2\right)}{\left(n+1\right)^2}=\frac{\left(n+1\right)^2+2n^2\left(n+1\right)+n^4}{\left(n+1\right)^2}\)
\(=\frac{\left(n^2+n+1\right)^2}{\left(n+1\right)^2}=\left(\frac{n\left(n+1\right)+1}{n+1}\right)^2=\left(n+\frac{1}{n+1}\right)^2\)
\(\Rightarrow\sqrt{1+n^2+\left(\frac{n}{n+1}\right)^2}=n+\frac{1}{n+1}\)
\(\Rightarrow B=2014+\frac{1}{2015}+\frac{2014}{2015}=2015\)