Given an integer n, consider a sequence of blocks formed by consecutive positive integers starting from
The
The
The
In general, the
The value of each block is the product of all integers contained within it.
Return the sum of the values of the first n blocks modulo
Constraints:
n
Given an integer n, consider a sequence of blocks formed by consecutive positive integers starting from
The
The
The
In general, the
The value of each block is the product of all integers contained within it.
Return the sum of the values of the first n blocks modulo
Constraints:
n