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

Advancing to step 1:
37 goes into 3 0 times with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 37

Let's proceed to step 2:
37 goes into 33 0 times with a remainder of 33.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 33 after subtracting 0 from 33.
Fetch the next digit (1) from the dividend, attach it to 33 and continue: 331 / 37

Advancing to step 3:
The number 37 fits into 331 8 times, leaving a remainder of 35.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Subtracting 296 from 331 leaves us with 35.
Bring next digit (0) of the dividend behind the 35 and repeat the process: 350 / 37

Advancing to step 4:
When dividing 350 by 37, we get 9 with a remainder of 17.
The next digit of our result is 9. 
Result so far: 89.0
If we take 333 away from 350, we end up with 17.
Fetch the next digit (3) from the dividend, attach it to 17 and continue: 173 / 37

Going ahead to step 5:
When dividing 173 by 37, we get 4 with a remainder of 25.
The number 4 becomes the next digit in our result. 
Result so far: 894.0
The remainder is 25 after subtracting 148 from 173.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 37

Step 6:
37 goes into 257 6 times with a remainder of 35.
Use 6 as the next digit of our solution. 
Result so far: 8946.0
If we subtract 222 from 257, we 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.

Moving on to step 7:
37 goes into 350 9 times with a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 8946.9
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.

On to step 8:
37 can be fit into 170 4 times, resulting in a remainder of 22.
Write down 4 as next digit of the result. 
Result so far: 8946.94
If we subtract 148 from 170, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 9:
The number 37 fits into 220 5 times, leaving a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 8946.945
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.

Advancing to step 10:
When dividing 350 by 37, we get 9 with a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 8946.9459
If we take 333 away from 350, we end up 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.

On to step 11:
If we divide 170 by 37, we get 4 and a remainder of 22.
Put 4 as the next digit of the answer. 
Result so far: 8946.94594
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.

Advancing to step 12:
220 divided by 37 is 5 with a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 8946.945945
If we subtract 185 from 220, we 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.

Step 13:
37 can be fit into 350 9 times, resulting in a remainder of 17.
The next digit of our result is 9. 
Result so far: 8946.9459459
Subtracting 333 from 350 leaves us 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.

Going ahead to step 14:
When dividing 170 by 37, we get 4 with a remainder of 22.
Use 4 as the next digit of our solution. 
Result so far: 8946.94594594
Subtracting 148 from 170 leaves us 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.

The final outcome is 8946.94594594, with a leftover of 2.2e-08.