Processing math: 100%

Problem #228

Generating Sets

For given numbers n, a and a set S, define the set a^S = {{{a^t~mod~n:t~is~in~S}}}.

For n = 998244353 and S = Set of natural numbers, find

\sum_{i=1}^{n}{|i^S|}

Give ans modulo 10^9+7 .

Note: |X| denote the size of set X.

Contributed by Aman Dubey

Solved by 22 users

Log in to submit answers.

Is something wrong?

Maintaining a collection of high quality questions is our top priority. If, however, you do find an error, report the problem and we'll make sure it is reviewed soon.