Limit[Sum[(1/n)((i/n)^2+(2i)/n),{i,1,n}],n->Infinity]