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

Let's proceed to step 1:
If we divide 8 by 37, we get 0 and a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 37

Let's proceed to step 2:
37 can be fit into 87 2 times, resulting in a remainder of 13.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 74 from 87 to get 13.
Bring next digit (1) of the dividend behind the 13 and repeat the process: 131 / 37

Let's proceed to step 3:
The number 37 fits into 131 3 times, leaving a remainder of 20.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
Subtracting 111 from 131 leaves us with 20.
Take the next digit (9) from the dividend and append it to 20, then repeat: 209 / 37

Advancing to step 4:
37 can be fit into 209 5 times, resulting in a remainder of 24.
The next digit of our result is 5. 
Result so far: 235.0
Subtracting 185 from 209 leaves us with 24.
Append the next digit (8) from the dividend to 24 and continue with: 248 / 37

Let's proceed to step 5:
The number 37 fits into 248 6 times, leaving a remainder of 26.
The number 6 becomes the next digit in our result. 
Result so far: 2356.0
Subtract 222 from 248 to get 26.
Append the next digit (9) from the dividend to 26 and continue with: 269 / 37

Let's proceed to step 6:
The number 37 fits into 269 7 times, leaving a remainder of 10.
Use 7 as the next digit of our solution. 
Result so far: 23567.0
Subtracting 259 from 269 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 7:
37 goes into 100 2 times with a remainder of 26.
Use 2 as the next digit of our solution. 
Result so far: 23567.2
The remainder is 26 after subtracting 74 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
37 goes into 260 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 23567.27
If we take 259 away from 260, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 9:
10 divided by 37 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 23567.27
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 10:
37 can be fit into 100 2 times, resulting in a remainder of 26.
Put 2 as the next digit of the answer. 
Result so far: 23567.2702
Deduct 74 from 100 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 11:
If we divide 260 by 37, we get 7 and a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 23567.27027
If we take 259 away from 260, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 12:
10 divided by 37 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 23567.27027
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
100 divided by 37 is 2 with a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 23567.2702702
Deduct 74 from 100 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 14:
260 divided by 37 is 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 23567.27027027
Subtracting 259 from 260 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

After the division, we end up with 23567.27027027 and a remainder of 1e-09.