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

Let's proceed to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 31

Step 2:
17 divided by 31 is 0 with a remainder of 17.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 17 leaves us with 17.
Append the next digit (1) from the dividend to 17 and continue with: 171 / 31

Step 3:
When dividing 171 by 31, we get 5 with a remainder of 16.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 155 from 171 leaves us with 16.
Append the next digit (2) from the dividend to 16 and continue with: 162 / 31

Let's proceed to step 4:
31 can be fit into 162 5 times, resulting in a remainder of 7.
The next digit of our result is 5. 
Result so far: 55.0
Subtracting 155 from 162 leaves us with 7.
Take the next digit (2) from the dividend and append it to 7, then repeat: 72 / 31

Moving on to step 5:
31 goes into 72 2 times with a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 552.0
If we subtract 62 from 72, we get 10.
Bring next digit (9) of the dividend behind the 10 and repeat the process: 109 / 31

Advancing to step 6:
109 divided by 31 is 3 with a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 5523.0
Deduct 93 from 109 and we're left 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.

Going ahead to step 7:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 5523.5
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 8:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 5523.51
Deduct 31 from 50 and we're left 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.

Moving on to step 9:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 5523.516
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.

Step 10:
40 divided by 31 is 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 5523.5161
Subtract 31 from 40 to 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.

On to step 11:
If we divide 90 by 31, we get 2 and a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 5523.51612
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.

Let's proceed to step 12:
280 divided by 31 is 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 5523.516129
Deduct 279 from 280 and we're left 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.

On to step 13:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 5523.516129
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.

Step 14:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 5523.51612903
If we subtract 93 from 100, we 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.

In conclusion, the division gives 5523.51612903 with a balance of 7e-09.