Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Francesco,
I am not quite sure if this is like something you wanted: n←13 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) 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)
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |