We're dividing 31978 by 2 
The aim is to understand the frequency of 2 in 31978.

Moving on to step 1:
The number 2 fits into 3 1 times, leaving a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 1 after subtracting 2 from 3.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 2

Step 2:
When dividing 11 by 2, we get 5 with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 15.0
Deduct 10 from 11 and we're left with 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 2

Let's proceed to step 3:
If we divide 19 by 2, we get 9 and a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 159.0
Subtracting 18 from 19 leaves us with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 2

Advancing to step 4:
2 can be fit into 17 8 times, resulting in a remainder of 1.
The next digit of our result is 8. 
Result so far: 1598.0
The remainder is 1 after subtracting 16 from 17.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 2

Advancing to step 5:
When dividing 18 by 2, we get 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 15989.0
Subtract 18 from 18 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 6:
0 divided by 2 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 15989.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 15989.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 15989.0 with a remainder of 0.0.