Question: sum over seq()'s output

These functions give different indices for the x variables:

> test := j->sum(x[j-i mod 24], i = 0 .. 8); test2 := j->seq(x[j-i mod 24)], i = 0 .. 8);

> test(3); test2(3);

x[3]+x[26]+x[49]+x[72]+x[95]+x[118]+x[141]+x[164]+x[187]

x[3], x[2], x[1], x[0], x[23], x[22], x[21], x[20], x[19]

The second line uses the indices I would like.  What am I doing wrong?

Please Wait...