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

Step 1:
The number 31 fits into 9 0 times, leaving a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Append the next digit (4) from the dividend to 9 and continue with: 94 / 31

Moving on to step 2:
The number 31 fits into 94 3 times, leaving a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 93 from 94 to get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 31

Step 3:
31 goes into 17 0 times with a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 30.0
Deduct 0 from 17 and we're left with 17.
Include the next digit (5) from the dividend after 17, then repeat: 175 / 31

Advancing to step 4:
31 goes into 175 5 times with a remainder of 20.
Record the quotient 5 as the next digit in the result. 
Result so far: 305.0
If we subtract 155 from 175, we get 20.
Bring next digit (5) of the dividend behind the 20 and repeat the process: 205 / 31

Let's proceed to step 5:
When dividing 205 by 31, we get 6 with a remainder of 19.
Record the quotient 6 as the next digit in the result. 
Result so far: 3056.0
If we take 186 away from 205, we end up with 19.
Take the next digit (7) from the dividend and append it to 19, then repeat: 197 / 31

Step 6:
When dividing 197 by 31, we get 6 with a remainder of 11.
The next digit of our result is 6. 
Result so far: 30566.0
Deduct 186 from 197 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
If we divide 110 by 31, we get 3 and a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 30566.3
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 8:
170 divided by 31 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 30566.35
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 9:
31 goes into 150 4 times with a remainder of 26.
The next digit of our result is 4. 
Result so far: 30566.354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 10:
260 divided by 31 is 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 30566.3548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 11:
The number 31 fits into 120 3 times, leaving a remainder of 27.
The next digit of our result is 3. 
Result so far: 30566.35483
If we subtract 93 from 120, 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.

Moving on to step 12:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 30566.354838
Subtract 248 from 270 to 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 13:
If we divide 220 by 31, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 30566.3548387
The remainder is 3 after subtracting 217 from 220.
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 14:
If we divide 30 by 31, we get 0 and a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 30566.3548387
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

After the division, we end up with 30566.3548387 and a remainder of 3e-08.