Cody

Problem 2595. Polite numbers. Politeness.

Created by Jan Orwat in Community

A polite number is an integer that sums of two or more consecutive positive integers. Politeness of a positive integer is a number of nontrivial ways to write n as a sum of two or more consecutive positive integers.

For example 9 = 4+5 = 2+3+4 and politeness of 9 is 2.

Given N return politeness of N.

See also 2593

Solution Stats

38.33% Correct | 61.67% Incorrect
Last solution submitted on Mar 27, 2019

Problem Comments

Solution Comments

Recent Solvers91

Suggested Problems

More from this Author47