We're dividing 398172 by 29 
The aim is to understand the frequency of 29 in 398172.

Step 1:
When dividing 3 by 29, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 29

Moving on to step 2:
If we divide 39 by 29, we get 1 and a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 29 from 39, we get 10.
Bring next digit (8) of the dividend behind the 10 and repeat the process: 108 / 29

Moving on to step 3:
108 divided by 29 is 3 with a remainder of 21.
The next digit of our result is 3. 
Result so far: 13.0
Deduct 87 from 108 and we're left with 21.
Include the next digit (1) from the dividend after 21, then repeat: 211 / 29

Step 4:
If we divide 211 by 29, we get 7 and a remainder of 8.
The next digit of our result is 7. 
Result so far: 137.0
Deduct 203 from 211 and we're left with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 29

Moving on to step 5:
When dividing 87 by 29, we get 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 1373.0
The remainder is 0 after subtracting 87 from 87.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 29

Let's proceed to step 6:
If we divide 2 by 29, we get 0 and a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 13730.0
If we subtract 0 from 2, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
The number 29 fits into 20 0 times, leaving a remainder of 20.
The next digit of our result is 0. 
Result so far: 13730.0
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
If we divide 200 by 29, we get 6 and a remainder of 26.
Write down 6 as next digit of the result. 
Result so far: 13730.06
If we subtract 174 from 200, we 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.

Let's proceed to step 9:
When dividing 260 by 29, we get 8 with a remainder of 28.
Use 8 as the next digit of our solution. 
Result so far: 13730.068
Subtract 232 from 260 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.

Moving on to step 10:
29 can be fit into 280 9 times, resulting in a remainder of 19.
The next digit of our result is 9. 
Result so far: 13730.0689
If we take 261 away from 280, we end up 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 11:
29 goes into 190 6 times with a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 13730.06896
Subtracting 174 from 190 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.

Moving on to step 12:
If we divide 160 by 29, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 13730.068965
Subtracting 145 from 160 leaves us 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 13:
150 divided by 29 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 13730.0689655
Subtract 145 from 150 to 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.

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