We divide 504071 by 37
The aim is to understand the frequency of 37 in 504071.

Going ahead to step 1:
37 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 37

Going ahead to step 2:
50 divided by 37 is 1 with a remainder of 13.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 37 from 50 leaves us with 13.
Take the next digit (4) from the dividend and append it to 13, then repeat: 134 / 37

On to step 3:
The number 37 fits into 134 3 times, leaving a remainder of 23.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Subtracting 111 from 134 leaves us with 23.
Include the next digit (0) from the dividend after 23, then repeat: 230 / 37

On to step 4:
37 goes into 230 6 times with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 136.0
If we take 222 away from 230, we end up with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 37

On to step 5:
87 divided by 37 is 2 with a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 1362.0
If we subtract 74 from 87, we get 13.
Fetch the next digit (1) from the dividend, attach it to 13 and continue: 131 / 37

On to step 6:
37 can be fit into 131 3 times, resulting in a remainder of 20.
The next digit of our result is 3. 
Result so far: 13623.0
If we take 111 away from 131, 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.

On to step 7:
When dividing 200 by 37, we get 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 13623.5
Subtracting 185 from 200 leaves us 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.

On to step 8:
The number 37 fits into 150 4 times, leaving a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 13623.54
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.

Step 9:
The number 37 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 13623.54
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.

On to step 10:
37 goes into 200 5 times with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 13623.5405
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.

Advancing to step 11:
If we divide 150 by 37, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 13623.54054
Deduct 148 from 150 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 12:
If we divide 20 by 37, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 13623.54054
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 13:
37 goes into 200 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 13623.5405405
If we take 185 away from 200, we end up 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.

On to step 14:
If we divide 150 by 37, we get 4 and a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 13623.54054054
If we take 148 away from 150, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Our division results in 13623.54054054 with a remaining 2e-09.