In a library there are (2n+1) books. If a student selects atleast (n+1) books in 256 ways, then the number of books in the library is