Let's divide 123815 by 31
The aim is to understand the frequency of 31 in 123815.

Let's proceed to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 31

Advancing to step 2:
12 divided by 31 is 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 12 and we're left with 12.
Take the next digit (3) from the dividend and append it to 12, then repeat: 123 / 31

Let's proceed to step 3:
The number 31 fits into 123 3 times, leaving a remainder of 30.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
The remainder is 30 after subtracting 93 from 123.
Bring next digit (8) of the dividend behind the 30 and repeat the process: 308 / 31

Step 4:
The number 31 fits into 308 9 times, leaving a remainder of 29.
Record the quotient 9 as the next digit in the result. 
Result so far: 39.0
If we take 279 away from 308, we end up with 29.
Take the next digit (1) from the dividend and append it to 29, then repeat: 291 / 31

Step 5:
31 goes into 291 9 times with a remainder of 12.
The next digit of our result is 9. 
Result so far: 399.0
Deduct 279 from 291 and we're left with 12.
Include the next digit (5) from the dividend after 12, then repeat: 125 / 31

Moving on to step 6:
When dividing 125 by 31, we get 4 with a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 3994.0
Subtract 124 from 125 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
If we divide 10 by 31, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 3994.0
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 8:
When dividing 100 by 31, we get 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 3994.03
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 9:
If we divide 70 by 31, we get 2 and a remainder of 8.
The next digit of our result is 2. 
Result so far: 3994.032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 10:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 3994.0322
Subtract 62 from 80 to 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.

The quotient of the division is 3994.0322, and the remainder is 0.00018.