Tuesday, May 25, 2010

Count numbers

How do you count the number of ways a number can be expressed as a sum
of 2 or more numbers?

For eg. if the number is 5 , count=3 i.e 1+1+1+1+1, 4+1, 3+2
note 2+3 is same as 3+2

1 comment:

  1. Aren't 1+1+1+2, 2+2+1, 3+1+1 = 5 ? Shouldn't the count be 6?

    ReplyDelete