#P10955. 正整数拆分

正整数拆分

Problem Description

Given a positive integer NN, you need to split NN into a sum of several positive integers. The numbers used in the addition can be repeated.

Note:

  • The order of a partition does not matter.
  • You must split it into a sum of at least 22 numbers.

Output the number of valid partitions mod2147483648\bmod 2147483648.

Input Format

A positive integer NN.

Output Format

Output one integer, representing the result.

7
14

Hint

Constraints: 1N40001 \le N \le 4000.

Translated by ChatGPT 5