Hello Francesco,
I am not quite sure if this is like something you wanted:
[MATH=eng]n←13[/MATH]
[MATH=eng]sum(el(x,2*i),i,1,round({n-1}/2,0))—el(x,2)+el(x,4)+el(x,6)+el(x,8)+el(x,10)+el(x,12)[/MATH]
[MATH=eng]sum(el(x,2*i+1),i,0,round(n/2-1,0))—el(x,1)+el(x,3)+el(x,5)+el(x,7)+el(x,9)+el(x,11)+el(x,13)[/MATH]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"