Introduction This short article is mainly for students, software engineers and those who are struggling to get a grip on the subject. In other words I will not be focusing on the theoretical side of the topic. I will first …

# Tag Archives: Factorial

## Playing Cards – Four of a Kind

Problem 5 cards are randomly drawn from a standard 52 card deck. What is the probability to get four of a kind. For example 4 different aces plus some additional card Solution The total number of ways to choose 5 …

## Computer Language Symbols

Problem A computer language is usingĀ 10 symbols and 26 letters. How many 6 digit words can be constructed using 3 different letters and 3 different symbols. How many different symbols can be constructed if the word has to start with …

## Understanding Recursion

What is Recursion: Please Bear with me This is going to be a short and technical article so please bear with my bad English and writing style. Language is also a mean of communication and sometimes it fails to convey …

## Men and Women

Problem How many different couples we can make if we are asked to select 5 women from 10 candidates and 5 men from 12 candidates. Solution There are 10 choose 5 different ways to select the women: 10!/(10-5)!5! = 252 …

## Cars and Drivers

Problem We have 4 drivers and 4 cars. If two cars can only be driven by two drivers and the other two cars can be driven by any driver. How many different ways the drivers can drive the cars. Solution …

## Playing Cards – One Ace in each Hand

Problem In playing cards what is the probability that each of the four players gets an ace Solution Each player gets 13 cards out of 52 so there are: (52 choose 13)(39 choose 13)(26 choose 13)(13 choose 13) = (52!/39!13!)(39!/26!13!)(26!/13!13!) …