Probability, solve linear equation system

Read this book: Concrete Mathematics