Project Euler #100: Arranged probability

  • + 0 comments

    but if you look at q as 4 which is perfect square,and p as 3, so we ended up with 3/4 which we can get from (7/8)x(6/7). I guess both q and p can be perfect square,unless they aren't perfect square at the same time because then whole fraction will be perfect square