partitions_q function
How many ways a whole number is a sum of distinct positive whole numbers.
How to write it
partitions_q(n)
- n
- A whole number. Takes a whole number.
Examples
partitions_q(10)In the solver,
Open in the solverpartitions_q(10)gives10.
Related functions
- partitions_p
How many ways a whole number is a sum of positive whole numbers, in any order of terms.
- integer_partitions
All the ways to write a whole number as a sum of positive whole numbers.
- power_mod
A power modulo a number: base^exponent mod modulus.
- previous_prime
The greatest prime less than a number.
- nth_prime
The n-th prime, counting 2 as the first.
- prime_nu
How many distinct primes divide a whole number.