\(\frac{3^{2017}+3^7}{3^{2015}+3^5}=\frac{3^2.\left(3^{2015}+3^5\right)}{3^{2015}+3^5}=\frac{3^2\left(3^{2015}+3^5\right)}{1\left(3^{2015}+3^5\right)}=3^2=9\)
\(\frac{3^{2017}+3^7}{3^{2015}+3^5}\)
\(=\frac{3^{2015}.3^2+3^2.3^5}{3^{2015}+3^5}=\frac{\left(3^{2015}+3^5\right).3^2}{3^{2015}+3^5}=3^2=9\)