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

Going ahead to step 1:
If we divide 5 by 37, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 37

Step 2:
The number 37 fits into 50 1 times, leaving a remainder of 13.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 37 away from 50, we end up with 13.
Include the next digit (1) from the dividend after 13, then repeat: 131 / 37

Step 3:
When dividing 131 by 37, we get 3 with a remainder of 20.
The next digit of our result is 3. 
Result so far: 13.0
Deduct 111 from 131 and we're left with 20.
Append the next digit (0) from the dividend to 20 and continue with: 200 / 37

Advancing to step 4:
37 goes into 200 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 135.0
If we subtract 185 from 200, we get 15.
Take the next digit (1) from the dividend and append it to 15, then repeat: 151 / 37

On to step 5:
The number 37 fits into 151 4 times, leaving a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 1354.0
Subtract 148 from 151 to get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 37

Going ahead to step 6:
If we divide 39 by 37, we get 1 and a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 13541.0
If we subtract 37 from 39, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
20 divided by 37 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 13541.0
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
200 divided by 37 is 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 13541.05
If we subtract 185 from 200, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
37 can be fit into 150 4 times, resulting in a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 13541.054
Subtract 148 from 150 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 10:
The number 37 fits into 20 0 times, leaving a remainder of 20.
The next digit of our result is 0. 
Result so far: 13541.054
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
When dividing 200 by 37, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 13541.05405
Deduct 185 from 200 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 12:
If we divide 150 by 37, we get 4 and a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 13541.054054
If we subtract 148 from 150, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 13:
37 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 13541.054054
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 14:
37 goes into 200 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 13541.05405405
If we subtract 185 from 200, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final result is 13541.05405405 with a remainder of 1.5e-08.