We're dividing 406519 by 31 
The aim is to understand the frequency of 31 in 406519.

Let's proceed to step 1:
The number 31 fits into 4 0 times, leaving a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 31

Let's proceed to step 2:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 9 after subtracting 31 from 40.
Take the next digit (6) from the dividend and append it to 9, then repeat: 96 / 31

Step 3:
The number 31 fits into 96 3 times, leaving a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Subtract 93 from 96 to get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 31

Step 4:
31 can be fit into 35 1 times, resulting in a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 131.0
If we take 31 away from 35, we end up with 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 31

Going ahead to step 5:
31 goes into 41 1 times with a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1311.0
Subtracting 31 from 41 leaves us with 10.
Take the next digit (9) from the dividend and append it to 10, then repeat: 109 / 31

Step 6:
31 can be fit into 109 3 times, resulting in a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 13113.0
Subtracting 93 from 109 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 7:
If we divide 160 by 31, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 13113.5
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.

Moving on to step 8:
31 goes into 50 1 times with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 13113.51
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.

Moving on to step 9:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 13113.516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 10:
40 divided by 31 is 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 13113.5161
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 11:
90 divided by 31 is 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 13113.51612
Subtract 62 from 90 to 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.

Let's proceed to step 12:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 13113.516129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 13:
When dividing 10 by 31, we get 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 13113.516129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 14:
If we divide 100 by 31, we get 3 and a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 13113.51612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Our division results in 13113.51612903 with a remaining 7e-09.