Home | Problemset | Contests | Account

Sum of First Elements

Author: mistertfy64

Define a function P(N) as a function takes an integer N as its input and returns a set of all permutations of every integer from 1 to N, inclusive.

For example:

Define another function T(S) as a function takes a set as its input and returns the sum of the first element of each element in its set.

For example (referring to the example for P for the order of addends):

The correct password is the remainder of T(P(5000)) divided by 1000000007.

Do not include digit separators (e.g., commas and/or dots) in your answer.


Please log in to submit answers.

Correct Answers

# Username Timestamp
1 empty 2025-08-12T13:54:14.323Z
2 pxsit 2025-08-12T13:58:04.566Z