I want to ask about this problem: 622F - Сумма k-x степеней. I solved it using lagrange interpolation 263080914 but can anyone help me implement the solution with Faulhaber's formula? Thanks very much.
I want to ask about this problem: 622F - Сумма k-x степеней. I solved it using lagrange interpolation 263080914 but can anyone help me implement the solution with Faulhaber's formula? Thanks very much.
It's not easy to calculate the `Bernoulli number'. Also, the modulo is not NTT friendly.
Consider these blogs: Prefix Sum Polynomial, and Counting sums of powers for "How to generate Bernoulli number".