P
Initializing...
Prefix sums of the lifted sequence: the first $L$ entries sum to $(L \bmod m_1) + M\lfloor L/m_1 \rfloor$ · Prove2Me