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

Step 1:
2 divided by 37 is 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 37

Step 2:
25 divided by 37 is 0 with a remainder of 25.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 25, we end up with 25.
Bring next digit (1) of the dividend behind the 25 and repeat the process: 251 / 37

Moving on to step 3:
When dividing 251 by 37, we get 6 with a remainder of 29.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we take 222 away from 251, we end up with 29.
Include the next digit (1) from the dividend after 29, then repeat: 291 / 37

Step 4:
291 divided by 37 is 7 with a remainder of 32.
Use 7 as the next digit of our solution. 
Result so far: 67.0
If we take 259 away from 291, we end up with 32.
Append the next digit (8) from the dividend to 32 and continue with: 328 / 37

Going ahead to step 5:
328 divided by 37 is 8 with a remainder of 32.
Put 8 as the next digit of the answer. 
Result so far: 678.0
Subtracting 296 from 328 leaves us with 32.
Take the next digit (7) from the dividend and append it to 32, then repeat: 327 / 37

Moving on to step 6:
When dividing 327 by 37, we get 8 with a remainder of 31.
The number 8 becomes the next digit in our result. 
Result so far: 6788.0
If we subtract 296 from 327, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 7:
37 can be fit into 310 8 times, resulting in a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 6788.8
If we take 296 away from 310, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
When dividing 140 by 37, we get 3 with a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 6788.83
If we take 111 away from 140, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 9:
37 goes into 290 7 times with a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 6788.837
If we subtract 259 from 290, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 10:
37 goes into 310 8 times with a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 6788.8378
Subtract 296 from 310 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 11:
140 divided by 37 is 3 with a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 6788.83783
If we take 111 away from 140, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 12:
If we divide 290 by 37, we get 7 and a remainder of 31.
Use 7 as the next digit of our solution. 
Result so far: 6788.837837
Subtracting 259 from 290 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 13:
When dividing 310 by 37, we get 8 with a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 6788.8378378
If we subtract 296 from 310, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 14:
140 divided by 37 is 3 with a remainder of 29.
The next digit of our result is 3. 
Result so far: 6788.83783783
Deduct 111 from 140 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

After the division, we end up with 6788.83783783 and a remainder of 2.9e-08.