Skip certain values in a sum
You can start by creating a list of all the values you want to iterate through:
indices = DeleteCases[Range[0,J],10];
And then do either
Sum[f[i], {i, indices}]
or
Total[f /@ indices]
You can use an If
statement:
Sum[If[i == 10, 0, f[i]], {i, J}]