Summation and Function Notation

Is there a way I can define the function, f on the screen below so that when students type the summation into the math input it will be evaluated? I want to keep using function notation. I’d rather not have them type in the graph but that’s the only thing I know of right now.