changing the sign of every number divisible by $m$
Source: Moldova TST 2022
April 1, 2022
combinatoricsnumber theory
Problem Statement
Let be a positive integer. On a board there are written all integers from to . Alina does moves consecutively: for every integer the move consists in changing the sign of every number divisible by . At the end Alina sums the numbers. Find this sum.