Is there a way to define in how many ways can I form a number by it's portions?(adsbygoogle = window.adsbygoogle || []).push({});

e.g: the number 5 has 6 ways:

1+1+1+1+1

2+1+1+1

2+3

2+2+1

3+1+1

4+1

I was trying to program that and would appreciate any help!

Thanks.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Finding all combination of portions of a number.

Loading...

Similar Threads - Finding combination portions | Date |
---|---|

I How to find admissible functions for a domain? | Jan 31, 2018 |

I How to find the matrix of the derivative endomorphism? | Oct 22, 2017 |

I Finding the Kernel of a Matrix Map | Sep 15, 2017 |

A How can I find the collision time of 2 ellipsoids that rotate | May 22, 2017 |

Algorithm for finding best (or combinations of) non-overlapping matrix elements. | May 4, 2012 |

**Physics Forums - The Fusion of Science and Community**