We're dividing 10199 by 8 
The aim is to understand the frequency of 8 in 10199.

On to step 1:
The number 8 fits into 1 0 times, leaving a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 8

Advancing to step 2:
8 can be fit into 10 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 8 away from 10, we end up with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 8

Going ahead to step 3:
8 can be fit into 21 2 times, resulting in a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtract 16 from 21 to get 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 8

Going ahead to step 4:
The number 8 fits into 59 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 127.0
Subtract 56 from 59 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 8

On to step 5:
If we divide 39 by 8, we get 4 and a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 1274.0
If we take 32 away from 39, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 6:
If we divide 70 by 8, we get 8 and a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 1274.8
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.

Going ahead to step 7:
60 divided by 8 is 7 with a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 1274.87
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 8:
If we divide 40 by 8, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 1274.875
The remainder is 0 after subtracting 40 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
8 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1274.875
Deduct 0 from 0 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.

Going ahead to step 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 1274.875
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.

Our division results in 1274.875 with a remaining 0.0.