You'll want to look into the binomial distribution. But for this particular problem we get

Where the first column is the number of times you get it right and the second column is the probability.Code:`[,1] [,2] [1,] 0 0.32768 [2,] 1 0.40960 [3,] 2 0.20480 [4,] 3 0.05120 [5,] 4 0.00640 [6,] 5 0.00032`