Answer:
The solution code is written in Python:
Explanation:
Firstly, we create a tuple that contains (1,6,5,7,1,3,4,1) (Line 1).
Next, declare a variable, repeats and initialize it with zero (Line 3).
Next, we use index zero to get the first element value from tuple and assign it to variable first (Line 4).
Then we are ready to use while loop to traverse through the tuple (Line 7). Please note the initial index is set at 1 instead of zero as we want to start from second element of the tuple to find if there is any number is equal to the first element (Line 8). If so, we add one to variable repeats (Line 9).
After completion of loop, we shall get the repeats with value of 2 (Line 13).