#P6267. [SHOI2002] N的连续数拆分
[SHOI2002] N的连续数拆分
Description
All positive integers can be represented as the sum of one, two, or more consecutive positive integers.
Given a positive integer not exceeding , find how many different ways it can be represented as a sum of consecutive positive integers. For example, for , there are three ways: , , .
Input Format
Input a positive integer , which is the integer to be decomposed.
Output Format
Output the number of methods.
9
3
11
2
12
2
Hint
.
Translated by ChatGPT 5
京公网安备 11011102002149号