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

On to step 1:
If we divide 6 by 31, we get 0 and a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 31

Step 2:
31 can be fit into 67 2 times, resulting in a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 62 from 67 to get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 31

Let's proceed to step 3:
31 can be fit into 51 1 times, resulting in a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 21.0
If we subtract 31 from 51, we get 20.
Append the next digit (4) from the dividend to 20 and continue with: 204 / 31

Advancing to step 4:
When dividing 204 by 31, we get 6 with a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 216.0
Subtracting 186 from 204 leaves us with 18.
Append the next digit (1) from the dividend to 18 and continue with: 181 / 31

On to step 5:
When dividing 181 by 31, we get 5 with a remainder of 26.
Put 5 as the next digit of the answer. 
Result so far: 2165.0
If we take 155 away from 181, we end up with 26.
Append the next digit (8) from the dividend to 26 and continue with: 268 / 31

Advancing to step 6:
The number 31 fits into 268 8 times, leaving a remainder of 20.
The next digit of our result is 8. 
Result so far: 21658.0
Subtracting 248 from 268 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 7:
31 goes into 200 6 times with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 21658.6
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 8:
If we divide 140 by 31, we get 4 and a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 21658.64
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 9:
31 goes into 160 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 21658.645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 10:
When dividing 50 by 31, we get 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 21658.6451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 21658.64516
If we take 186 away from 190, we end up with 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 12:
If we divide 40 by 31, we get 1 and a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 21658.645161
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.

Advancing to step 13:
If we divide 90 by 31, we get 2 and a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 21658.6451612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 14:
When dividing 280 by 31, we get 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 21658.64516129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

After the division, we end up with 21658.64516129 and a remainder of 1e-09.