Note there are ‘clever’ efficient ways and slower ‘brute force’ ways to solve both the text challenges.
Text Challenge 1
How many 6 digit integer numbers are a perfect square?
A perfect square is equal to an integer number multiplied by itself; for example 121 is a perfect square because it is 11×11.
If I have 2 normal dice and throw them together to get a combined score, what proportion of the scores will be 2 (double 1), 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12 (double 6)?
Which is the most common total for the dice pair?
Plot a histogram of the frequency of each of the possible outcomes when simulating 1000 throws of the dice pair.