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

Going ahead to step 1:
When dividing 1 by 37, we get 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 37

Let's proceed to step 2:
When dividing 16 by 37, we get 0 with a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 37

Going ahead to step 3:
164 divided by 37 is 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 16 after subtracting 148 from 164.
Fetch the next digit (0) from the dividend, attach it to 16 and continue: 160 / 37

Moving on to step 4:
If we divide 160 by 37, we get 4 and a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 44.0
Subtract 148 from 160 to get 12.
Append the next digit (3) from the dividend to 12 and continue with: 123 / 37

Step 5:
If we divide 123 by 37, we get 3 and a remainder of 12.
The number 3 becomes the next digit in our result. 
Result so far: 443.0
Deduct 111 from 123 and we're left with 12.
Grab the next digit (8) from the dividend, add it to 12, then carry on: 128 / 37

Moving on to step 6:
37 goes into 128 3 times with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 4433.0
Subtract 111 from 128 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
If we divide 170 by 37, we get 4 and a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 4433.4
Deduct 148 from 170 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 8:
The number 37 fits into 220 5 times, leaving a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 4433.45
The remainder is 35 after subtracting 185 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 9:
350 divided by 37 is 9 with a remainder of 17.
The number 9 becomes the next digit in our result. 
Result so far: 4433.459
Deduct 333 from 350 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 10:
37 goes into 170 4 times with a remainder of 22.
The next digit of our result is 4. 
Result so far: 4433.4594
If we take 148 away from 170, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 11:
220 divided by 37 is 5 with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 4433.45945
Subtract 185 from 220 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Let's proceed to step 12:
37 can be fit into 350 9 times, resulting in a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 4433.459459
The remainder is 17 after subtracting 333 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 13:
If we divide 170 by 37, we get 4 and a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 4433.4594594
If we take 148 away from 170, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 14:
If we divide 220 by 37, we get 5 and a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 4433.45945945
Subtracting 185 from 220 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final outcome is 4433.45945945, with a leftover of 3.5e-08.