Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

partitions_p function

How many ways a whole number is a sum of positive whole numbers, in any order of terms.

How to write it

partitions_p(n)

n
A whole number. Takes a whole number.

Examples

  • partitions_p⁡(10)=42\displaystyle \operatorname{partitions\_p}(10) = 42
    partitions_p(10)

    In the solver, partitions_p(10) gives 42.

    Open in the solver
  • partitions_q

    How many ways a whole number is a sum of distinct positive whole numbers.

  • integer_partitions

    All the ways to write a whole number as a sum of positive whole numbers.

  • nth_prime

    The n-th prime, counting 2 as the first.

  • power_mod

    A power modulo a number: base^exponent mod modulus.

  • next_prime

    The least prime greater than a number.

  • previous_prime

    The greatest prime less than a number.