We look at the division of 394059 by 37 
The aim is to understand the frequency of 37 in 394059.

On to step 1:
37 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in 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 / 37

Advancing to step 2:
37 goes into 39 1 times with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 37 away from 39, we end up with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 37

Let's proceed to step 3:
When dividing 24 by 37, we get 0 with a remainder of 24.
The next digit of our result is 0. 
Result so far: 10.0
If we take 0 away from 24, we end up with 24.
Bring next digit (0) of the dividend behind the 24 and repeat the process: 240 / 37

Let's proceed to step 4:
If we divide 240 by 37, we get 6 and a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 106.0
Deduct 222 from 240 and we're left with 18.
Take the next digit (5) from the dividend and append it to 18, then repeat: 185 / 37

Step 5:
The number 37 fits into 185 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 1065.0
Deduct 185 from 185 and we're left with 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 37

Advancing to step 6:
37 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 10650.0
The remainder is 9 after subtracting 0 from 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 7:
If we divide 90 by 37, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 10650.2
If we take 74 away from 90, we end up 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.

Advancing to step 8:
If we divide 160 by 37, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 10650.24
If we take 148 away from 160, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 9:
When dividing 120 by 37, we get 3 with a remainder of 9.
Use 3 as the next digit of our solution. 
Result so far: 10650.243
The remainder is 9 after subtracting 111 from 120.
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 10:
If we divide 90 by 37, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 10650.2432
If we take 74 away from 90, we end up 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 11:
When dividing 160 by 37, we get 4 with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 10650.24324
Subtract 148 from 160 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.

Let's proceed to step 12:
37 can be fit into 120 3 times, resulting in a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 10650.243243
Subtract 111 from 120 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.

Step 13:
37 can be fit into 90 2 times, resulting in a remainder of 16.
The next digit of our result is 2. 
Result so far: 10650.2432432
Subtract 74 from 90 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 14:
37 goes into 160 4 times with a remainder of 12.
The next digit of our result is 4. 
Result so far: 10650.24324324
If we subtract 148 from 160, we 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.

The final outcome is 10650.24324324, with a leftover of 1.2e-08.