Let's divide 158627 by 37
The aim is to understand the frequency of 37 in 158627.

Advancing to step 1:
If we divide 1 by 37, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 37

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

Going ahead to step 3:
158 divided by 37 is 4 with a remainder of 10.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 148 from 158 and we're left with 10.
Bring next digit (6) of the dividend behind the 10 and repeat the process: 106 / 37

Advancing to step 4:
The number 37 fits into 106 2 times, leaving a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 42.0
Subtract 74 from 106 to get 32.
Fetch the next digit (2) from the dividend, attach it to 32 and continue: 322 / 37

Going ahead to step 5:
37 goes into 322 8 times with a remainder of 26.
The next digit of our result is 8. 
Result so far: 428.0
Deduct 296 from 322 and we're left with 26.
Include the next digit (7) from the dividend after 26, then repeat: 267 / 37

Moving on to step 6:
267 divided by 37 is 7 with a remainder of 8.
The next digit of our result is 7. 
Result so far: 4287.0
Subtract 259 from 267 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
If we divide 80 by 37, we get 2 and a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 4287.2
The remainder is 6 after subtracting 74 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 8:
60 divided by 37 is 1 with a remainder of 23.
Put 1 as the next digit of the answer. 
Result so far: 4287.21
Subtracting 37 from 60 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 9:
The number 37 fits into 230 6 times, leaving a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 4287.216
If we take 222 away from 230, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
When dividing 80 by 37, we get 2 with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 4287.2162
Deduct 74 from 80 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 11:
The number 37 fits into 60 1 times, leaving a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 4287.21621
The remainder is 23 after subtracting 37 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 12:
When dividing 230 by 37, we get 6 with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 4287.216216
The remainder is 8 after subtracting 222 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 13:
80 divided by 37 is 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 4287.2162162
If we take 74 away from 80, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 14:
The number 37 fits into 60 1 times, leaving a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 4287.21621621
Subtracting 37 from 60 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The quotient of the division is 4287.21621621, and the remainder is 2.3e-08.