Polite Numbers - Calculate all the ways such that a number can be written as sum of 2 or more consecutive numbers
Problem Write a program that calculates all the ways that a number can be written as the sum of two or more consecutive numbers and generate those sets.
Background In number theory, a polite number is a positive integer that can be written as the sum of two or more consecutive positive integers.
The first few polite numbers are
3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17,…
[Read More]