Problem:
How many sequences of five nonzero digits are such that the product of any two
consecutive digits is a perfect square?
Solution:
We perform casework on the first digit of the sequence.
If is a perfect square, meaning that it is one out of , then the other elements in the sequence must also be perfect squares. So, there are possibilities for this case, but there are such cases, so there are possibilities.
If , then the other elements each must be one out of , so there are possibilities.
If is one out of , the other elements must be itself, so there is only possibility for each of these cases, giving us possibilities.
If , then the other elements must be one out of , so there are possibilities.
Lastly, summing up all of these, we get that the total number of possibilities is
Comments
Post a Comment