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

Moving on to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 31

Advancing to step 2:
The number 31 fits into 54 1 times, leaving a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 31 from 54, we get 23.
Grab the next digit (1) from the dividend, add it to 23, then carry on: 231 / 31

Step 3:
When dividing 231 by 31, we get 7 with a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 17.0
If we subtract 217 from 231, we get 14.
Grab the next digit (7) from the dividend, add it to 14, then carry on: 147 / 31

Advancing to step 4:
31 goes into 147 4 times with a remainder of 23.
Write down 4 as next digit of the result. 
Result so far: 174.0
Deduct 124 from 147 and we're left with 23.
Grab the next digit (3) from the dividend, add it to 23, then carry on: 233 / 31

Going ahead to step 5:
The number 31 fits into 233 7 times, leaving a remainder of 16.
Use 7 as the next digit of our solution. 
Result so far: 1747.0
The remainder is 16 after subtracting 217 from 233.
Append the next digit (0) from the dividend to 16 and continue with: 160 / 31

Moving on to step 6:
If we divide 160 by 31, we get 5 and a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 17475.0
If we take 155 away from 160, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
31 goes into 50 1 times with a remainder of 19.
The next digit of our result is 1. 
Result so far: 17475.1
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 8:
If we divide 190 by 31, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 17475.16
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 9:
31 goes into 40 1 times with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 17475.161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 17475.1612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 11:
280 divided by 31 is 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 17475.16129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 12:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 17475.16129
Subtracting 0 from 10 leaves us with 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 13:
100 divided by 31 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 17475.1612903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 14:
70 divided by 31 is 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 17475.16129032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 17475.16129032 with a balance of 8e-09.