https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Csum_%7Bi%3D1%7D%5E%7Bn-1%7D+f%28i%29%2Bf%28n%29%3Dn%5E2f%28n%29&bg=ffffff&fg=555555&s=0