We're dividing 386012 by 31 
The aim is to understand the frequency of 31 in 386012.

Advancing to step 1:
31 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 31

Moving on to step 2:
31 goes into 38 1 times with a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Grab the next digit (6) from the dividend, add it to 7, then carry on: 76 / 31

Going ahead to step 3:
The number 31 fits into 76 2 times, leaving a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Deduct 62 from 76 and we're left with 14.
Bring next digit (0) of the dividend behind the 14 and repeat the process: 140 / 31

Going ahead to step 4:
If we divide 140 by 31, we get 4 and a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 124.0
The remainder is 16 after subtracting 124 from 140.
Grab the next digit (1) from the dividend, add it to 16, then carry on: 161 / 31

On to step 5:
The number 31 fits into 161 5 times, leaving a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 1245.0
Subtracting 155 from 161 leaves us with 6.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 31

Going ahead to step 6:
62 divided by 31 is 2 with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 12452.0
Subtract 62 from 62 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.

Going ahead to step 7:
When dividing 0 by 31, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12452.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
The number 31 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 12452.0
The remainder is 0 after subtracting 0 from 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 12452.0 with a remaining 0.0.