Sum of Squares
Print 1^2 + 2^2 + ... + n^2 modulo 1,000,000,007.
Constraints
1 <= n <= 10^18
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.