We divide 398142 by 39
The aim is to understand the frequency of 39 in 398142.

Let's proceed to step 1:
39 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 39

Advancing to step 2:
When dividing 39 by 39, we get 1 with a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 39 from 39 to get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 39

Let's proceed to step 3:
39 goes into 8 0 times with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 8, we get 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 39

On to step 4:
The number 39 fits into 81 2 times, leaving a remainder of 3.
The next digit of our result is 2. 
Result so far: 102.0
Subtracting 78 from 81 leaves us with 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 39

Moving on to step 5:
39 can be fit into 34 0 times, resulting in a remainder of 34.
Write down 0 as next digit of the result. 
Result so far: 1020.0
Subtracting 0 from 34 leaves us with 34.
Bring next digit (2) of the dividend behind the 34 and repeat the process: 342 / 39

On to step 6:
39 can be fit into 342 8 times, resulting in a remainder of 30.
Use 8 as the next digit of our solution. 
Result so far: 10208.0
Subtract 312 from 342 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 7:
The number 39 fits into 300 7 times, leaving a remainder of 27.
Put 7 as the next digit of the answer. 
Result so far: 10208.7
Deduct 273 from 300 and we're left with 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 8:
39 goes into 270 6 times with a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 10208.76
The remainder is 36 after subtracting 234 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 9:
When dividing 360 by 39, we get 9 with a remainder of 9.
The number 9 becomes the next digit in our result. 
Result so far: 10208.769
Subtracting 351 from 360 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 10:
If we divide 90 by 39, we get 2 and a remainder of 12.
Record the quotient 2 as the next digit in the result. 
Result so far: 10208.7692
Subtract 78 from 90 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 11:
120 divided by 39 is 3 with a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 10208.76923
If we take 117 away from 120, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 12:
39 can be fit into 30 0 times, resulting in a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 10208.76923
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 13:
When dividing 300 by 39, we get 7 with a remainder of 27.
Put 7 as the next digit of the answer. 
Result so far: 10208.7692307
If we subtract 273 from 300, 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.

Going ahead to step 14:
When dividing 270 by 39, we get 6 with a remainder of 36.
Use 6 as the next digit of our solution. 
Result so far: 10208.76923076
Subtract 234 from 270 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

The quotient of the division is 10208.76923076, and the remainder is 3.6e-08.