Juggler_IN
Active Member
- Joined
- Nov 19, 2014
- Messages
- 358
- Office Version
- 2003 or older
- Platform
- Windows
The following concept at Rosetta Code got me interested Integer.
Is there a way to output a string for a given n? such as, for example,
- The integer n=5 has 7 names as “1+1+1+1+1”, “2+1+1+1”, “2+2+1”, “3+1+1”, “3+2”, “4+1”, “5”. Or,
- The integer n=4 has 5 names as “1+1+1+1”, “2+1+1”, “2+2”, “3+1”, “4”.
Is there a way to output a string for a given n? such as, for example,
- The integer n=5 has 7 names as “1+1+1+1+1”, “2+1+1+1”, “2+2+1”, “3+1+1”, “3+2”, “4+1”, “5”. Or,
- The integer n=4 has 5 names as “1+1+1+1”, “2+1+1”, “2+2”, “3+1”, “4”.