\(\frac{B}{A}=\frac{\frac{2016}{1}+\frac{2015}{2}+...+\frac{2}{2015}+\frac{1}{2016}}{\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+..+\frac{1}{2016}+\frac{1}{2017}}\)
\(\frac{B}{A}=\frac{\left(\frac{2016}{1}+1\right)+\left(\frac{2015}{2}+1\right)+...+\left(\frac{1}{2016}+1\right)}{\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2016}+\frac{1}{2017}}\)
\(\frac{B}{A}=\frac{\frac{2017}{1}+\frac{2017}{2}+...+\frac{2017}{2016}}{\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2016}+\frac{1}{2017}}\)
\(\frac{B}{A}=\frac{2017\cdot\left(\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2016}\right)}{\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2016}+\frac{1}{2017}}=2017\div\frac{1}{2017}=4068289\)