I'm looking for a code, to calculate the number of k-regular Partitions, of a positiv integer n. A k-regular Partition is a Partition, in which no summand is a multiple of k.
Hopefully someone has an idea! I am using the online Version of SageMath.
1 | initial version |
I'm looking for a code, to calculate the number of k-regular Partitions, of a positiv integer n. A k-regular Partition is a Partition, in which no summand is a multiple of k.
Hopefully someone has an idea! I am using the online Version of SageMath.