← All problemsSign in

Polite numbers

A **polite number** is a positive integer that can be written as the sum of two or more consecutive positive integers. Suppose for $7$ and $15$: - $7=3+4$ - $15=4+5+6$ So, $7$ and $15$ are polite number. While 1 can not be written as the sum of two or more consecutive positive integers. So it is not polite. You will be given a positive integer **N**. Now you have to tell how many positive int

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start