310523 divided by 31 
The aim is to understand the frequency of 31 in 310523.

Step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 31

Let's proceed to step 2:
31 divided by 31 is 1 with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 31 and we're left with 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 31

Moving on to step 3:
When dividing 0 by 31, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 10.0
The remainder is 0 after subtracting 0 from 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 31

Step 4:
5 divided by 31 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 100.0
If we subtract 0 from 5, we get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 31

On to step 5:
The number 31 fits into 52 1 times, leaving a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 1001.0
If we subtract 31 from 52, we get 21.
Fetch the next digit (3) from the dividend, attach it to 21 and continue: 213 / 31

Step 6:
31 can be fit into 213 6 times, resulting in a remainder of 27.
Write down 6 as next digit of the result. 
Result so far: 10016.0
If we subtract 186 from 213, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
270 divided by 31 is 8 with a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 10016.8
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 8:
When dividing 220 by 31, we get 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 10016.87
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 9:
When dividing 30 by 31, we get 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 10016.87
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 10:
300 divided by 31 is 9 with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 10016.8709
Deduct 279 from 300 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 11:
When dividing 210 by 31, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 10016.87096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 12:
If we divide 240 by 31, we get 7 and a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 10016.870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
31 goes into 230 7 times with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 10016.8709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 10016.8709677 with a balance of 1.3e-07.