We're dividing 138790 by 37 
The aim is to understand the frequency of 37 in 138790.

Going ahead to step 1:
1 divided by 37 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 37

Advancing to step 2:
If we divide 13 by 37, we get 0 and a remainder of 13.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 13 leaves us with 13.
Append the next digit (8) from the dividend to 13 and continue with: 138 / 37

Step 3:
If we divide 138 by 37, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 111 from 138, we get 27.
Fetch the next digit (7) from the dividend, attach it to 27 and continue: 277 / 37

Going ahead to step 4:
37 goes into 277 7 times with a remainder of 18.
Use 7 as the next digit of our solution. 
Result so far: 37.0
Subtracting 259 from 277 leaves us with 18.
Bring next digit (9) of the dividend behind the 18 and repeat the process: 189 / 37

Moving on to step 5:
When dividing 189 by 37, we get 5 with a remainder of 4.
The number 5 becomes the next digit in our result. 
Result so far: 375.0
Deduct 185 from 189 and we're left with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 37

On to step 6:
40 divided by 37 is 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 3751.0
Subtracting 37 from 40 leaves us 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.

Moving on to step 7:
37 can be fit into 30 0 times, resulting in a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 3751.0
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
If we divide 300 by 37, we get 8 and a remainder of 4.
The next digit of our result is 8. 
Result so far: 3751.08
Subtracting 296 from 300 leaves us 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 9:
40 divided by 37 is 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 3751.081
If we take 37 away from 40, 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.

Let's proceed to step 10:
30 divided by 37 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 3751.081
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 11:
The number 37 fits into 300 8 times, leaving a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 3751.08108
Subtracting 296 from 300 leaves us 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.

Let's proceed to step 12:
If we divide 40 by 37, we get 1 and a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 3751.081081
Deduct 37 from 40 and we're left 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 13:
The number 37 fits into 30 0 times, leaving a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 3751.081081
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 14:
300 divided by 37 is 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 3751.08108108
If we take 296 away from 300, 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.

The final result is 3751.08108108 with a remainder of 4e-09.