Hint
Tutorial
Bonus: solve for every $$$k$$$ from $$$1$$$ to $$$n$$$ for $$$n \le 10^5$$$
Hint
Tutorial
Hint
Tutorial
Hint
Tutorial
[problem:1712E]
Hint
Tutorial
Hint
Tutorial
Don't forget to rate the problems!
Problem Feedback
PS: Solution codes probably will be added later
PPS: I will post the answers to the problem references a bit later! Try to guess them if you haven't already.