Ravi has five friends. In how many ways can he invite one or more for a dinner?
The question is about selecting 1 or more things from 5 different things.
He can select one in 5C1 ways
He can select two in 5C2 ways
....
He can select all five in 5C5 ways.
Hence total no. of ways = 5C1 + 5C2 + 5C3 + 5C4 + 5C5 = 25 – 1 = 31.