(5/6)^5*(1/6)^2 is the probability to get five non-fives followed by two fives, when throwing the die seven times. (5/6)^5 is just the probabability to get non-fives the five first times, regardless of if you get any more fives the two last times.