A person is permitted to select at least 1 and atmost n coins from a collection of (2n+1) distinct coins.If the total number of ways in which it can be done is 255, find the value of n