This question doesn't support checking answers.
536. Modulo power identity

Publish Date:

Let S(n) be the sum of all positive integers m not exceeding n having the following property:
a m+4a (mod m) for all integers a.

The values of m ≤ 100 that satisfy this property are 1, 2, 3, 5 and 21, thus S(100) = 1+2+3+5+21 = 32.
You are given S(106) = 22868117.

Find S(1012).

Press F12 and use the "Console" tab to view the output of your codes.

Loading...