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

Let's proceed to step 1:
37 goes into 8 0 times with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 37

Going ahead to step 2:
37 can be fit into 86 2 times, resulting in a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 74 away from 86, we end up with 12.
Include the next digit (5) from the dividend after 12, then repeat: 125 / 37

On to step 3:
125 divided by 37 is 3 with a remainder of 14.
Put 3 as the next digit of the answer. 
Result so far: 23.0
Subtracting 111 from 125 leaves us with 14.
Fetch the next digit (2) from the dividend, attach it to 14 and continue: 142 / 37

Moving on to step 4:
37 can be fit into 142 3 times, resulting in a remainder of 31.
Use 3 as the next digit of our solution. 
Result so far: 233.0
If we subtract 111 from 142, we get 31.
Include the next digit (1) from the dividend after 31, then repeat: 311 / 37

Let's proceed to step 5:
The number 37 fits into 311 8 times, leaving a remainder of 15.
Record the quotient 8 as the next digit in the result. 
Result so far: 2338.0
If we take 296 away from 311, we end up with 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 37

Let's proceed to step 6:
158 divided by 37 is 4 with a remainder of 10.
The next digit of our result is 4. 
Result so far: 23384.0
Subtracting 148 from 158 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 7:
100 divided by 37 is 2 with a remainder of 26.
Record the quotient 2 as the next digit in the result. 
Result so far: 23384.2
If we take 74 away from 100, we end up 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.

Advancing to step 8:
When dividing 260 by 37, we get 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 23384.27
The remainder is 1 after subtracting 259 from 260.
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 9:
The number 37 fits into 10 0 times, leaving a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 23384.27
The remainder is 10 after subtracting 0 from 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 10:
If we divide 100 by 37, we get 2 and a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 23384.2702
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.

Moving on to step 11:
When dividing 260 by 37, we get 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 23384.27027
Subtract 259 from 260 to get 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 12:
When dividing 10 by 37, we get 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 23384.27027
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 13:
When dividing 100 by 37, we get 2 with a remainder of 26.
Use 2 as the next digit of our solution. 
Result so far: 23384.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.

On to step 14:
37 can be fit into 260 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 23384.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.

The final result is 23384.27027027 with a remainder of 1e-09.