I have approached the problem a little differently and got a different(although similar) result.
Answer: 4.63
There are 7 distinct ways of candies arrangements
1) all 5 candies are of different type (eg. abcde)
2) 4 candies are of different type, 1 of which is duplicate (eg. aabcd)
3) 3...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.