As for exercice 2 ... exactly.
i know that the final answer is 100 overall
because when u put -1 to an even power, it becomes a +1
and when u put -1 to an odd power, it becomes a -1
and you have 50 even and 50 odd numbers between 1 and 100
but i was wondering if there were any formulas or rules for this : )