First time here? Check out the FAQ!
How to define function with indexed variables and sum I would like to define a function f(n)=sum(x[k]*x[k+1], k= 1..n)