31750 divided by 8 
The aim is to understand the frequency of 8 in 31750.

Advancing to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 8

Step 2:
When dividing 31 by 8, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 3.0
If we subtract 24 from 31, we get 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 8

Step 3:
The number 8 fits into 77 9 times, leaving a remainder of 5.
Use 9 as the next digit of our solution. 
Result so far: 39.0
Subtract 72 from 77 to get 5.
Take the next digit (5) from the dividend and append it to 5, then repeat: 55 / 8

Going ahead to step 4:
8 can be fit into 55 6 times, resulting in a remainder of 7.
Put 6 as the next digit of the answer. 
Result so far: 396.0
If we subtract 48 from 55, we get 7.
Append the next digit (0) from the dividend to 7 and continue with: 70 / 8

Going ahead to step 5:
When dividing 70 by 8, we get 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 3968.0
Deduct 64 from 70 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 6:
When dividing 60 by 8, we get 7 with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 3968.7
Subtracting 56 from 60 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
40 divided by 8 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 3968.75
Deduct 40 from 40 and we're left 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 8:
0 divided by 8 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 3968.75
Subtract 0 from 0 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.

Moving on to step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 3968.75
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 outcome is 3968.75, with a leftover of 0.0.