399111 divided by 37 
The aim is to understand the frequency of 37 in 399111.

Step 1:
3 divided by 37 is 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 37

Step 2:
37 goes into 39 1 times with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 37 away from 39, we end up with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 37

Step 3:
37 goes into 29 0 times with a remainder of 29.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
The remainder is 29 after subtracting 0 from 29.
Append the next digit (1) from the dividend to 29 and continue with: 291 / 37

Moving on to step 4:
37 can be fit into 291 7 times, resulting in a remainder of 32.
Write down 7 as next digit of the result. 
Result so far: 107.0
Subtract 259 from 291 to get 32.
Grab the next digit (1) from the dividend, add it to 32, then carry on: 321 / 37

Moving on to step 5:
The number 37 fits into 321 8 times, leaving a remainder of 25.
Put 8 as the next digit of the answer. 
Result so far: 1078.0
If we take 296 away from 321, we end up with 25.
Fetch the next digit (1) from the dividend, attach it to 25 and continue: 251 / 37

Moving on to step 6:
37 can be fit into 251 6 times, resulting in a remainder of 29.
Use 6 as the next digit of our solution. 
Result so far: 10786.0
Deduct 222 from 251 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 7:
If we divide 290 by 37, we get 7 and a remainder of 31.
Record the quotient 7 as the next digit in the result. 
Result so far: 10786.7
Deduct 259 from 290 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 8:
If we divide 310 by 37, we get 8 and a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 10786.78
The remainder is 14 after subtracting 296 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
The number 37 fits into 140 3 times, leaving a remainder of 29.
Use 3 as the next digit of our solution. 
Result so far: 10786.783
If we take 111 away from 140, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 10:
When dividing 290 by 37, we get 7 with a remainder of 31.
The number 7 becomes the next digit in our result. 
Result so far: 10786.7837
Subtract 259 from 290 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Advancing to step 11:
If we divide 310 by 37, we get 8 and a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 10786.78378
Deduct 296 from 310 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 12:
37 can be fit into 140 3 times, resulting in a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 10786.783783
If we take 111 away from 140, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 13:
37 can be fit into 290 7 times, resulting in a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 10786.7837837
If we take 259 away from 290, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 14:
37 goes into 310 8 times with a remainder of 14.
The next digit of our result is 8. 
Result so far: 10786.78378378
Subtracting 296 from 310 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Our division results in 10786.78378378 with a remaining 1.4e-08.