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

On to step 1:
3 divided by 31 is 0 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.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 31

Step 2:
31 can be fit into 38 1 times, resulting in a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 31 from 38 to get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 31

Step 3:
If we divide 78 by 31, we get 2 and a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Subtracting 62 from 78 leaves us with 16.
Bring next digit (5) of the dividend behind the 16 and repeat the process: 165 / 31

Let's proceed to step 4:
31 can be fit into 165 5 times, resulting in a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 125.0
The remainder is 10 after subtracting 155 from 165.
Bring next digit (7) of the dividend behind the 10 and repeat the process: 107 / 31

Let's proceed to step 5:
31 can be fit into 107 3 times, resulting in a remainder of 14.
The number 3 becomes the next digit in our result. 
Result so far: 1253.0
Subtract 93 from 107 to get 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 31

Let's proceed to step 6:
31 goes into 142 4 times with a remainder of 18.
Put 4 as the next digit of the answer. 
Result so far: 12534.0
If we subtract 124 from 142, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
If we divide 180 by 31, we get 5 and a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 12534.5
Subtracting 155 from 180 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 8:
The number 31 fits into 250 8 times, leaving a remainder of 2.
The next digit of our result is 8. 
Result so far: 12534.58
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
The number 31 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 12534.58
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
When dividing 200 by 31, we get 6 with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 12534.5806
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 11:
31 goes into 140 4 times with a remainder of 16.
The next digit of our result is 4. 
Result so far: 12534.58064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 12:
When dividing 160 by 31, we get 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 12534.580645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 12534.5806451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 14:
The number 31 fits into 190 6 times, leaving a remainder of 4.
The next digit of our result is 6. 
Result so far: 12534.58064516
Deduct 186 from 190 and we're left 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.

The quotient of the division is 12534.58064516, and the remainder is 4e-09.