We divide 520834 by 31
The aim is to understand the frequency of 31 in 520834.

Step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 31

Advancing to step 2:
If we divide 52 by 31, we get 1 and a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 21 after subtracting 31 from 52.
Grab the next digit (0) from the dividend, add it to 21, then carry on: 210 / 31

On to step 3:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The next digit of our result is 6. 
Result so far: 16.0
If we take 186 away from 210, we end up with 24.
Include the next digit (8) from the dividend after 24, then repeat: 248 / 31

Moving on to step 4:
If we divide 248 by 31, we get 8 and a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 168.0
Subtract 248 from 248 to get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 31

Advancing to step 5:
3 divided by 31 is 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 1680.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (4) of the dividend behind the 3 and repeat the process: 34 / 31

Moving on to step 6:
34 divided by 31 is 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 16801.0
Deduct 31 from 34 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.

Advancing to step 7:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 16801.0
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
31 can be fit into 300 9 times, resulting in a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 16801.09
If we take 279 away from 300, we end up 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.

On to step 9:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 16801.096
Subtract 186 from 210 to 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.

On to step 10:
When dividing 240 by 31, we get 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 16801.0967
If we take 217 away from 240, we end up 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.

Advancing to step 11:
31 goes into 230 7 times with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 16801.09677
If we take 217 away from 230, we end up with 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 16801.09677 with a balance of 1.3e-05.