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

Advancing to step 1:
If we divide 5 by 37, we get 0 and 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 (1) from the dividend to 5 and continue with: 51 / 37

Moving on to step 2:
37 can be fit into 51 1 times, resulting in a remainder of 14.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 37 from 51 leaves us with 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 37

Let's proceed to step 3:
37 goes into 142 3 times with a remainder of 31.
The next digit of our result is 3. 
Result so far: 13.0
If we take 111 away from 142, we end up with 31.
Take the next digit (6) from the dividend and append it to 31, then repeat: 316 / 37

Moving on to step 4:
37 goes into 316 8 times with a remainder of 20.
The next digit of our result is 8. 
Result so far: 138.0
If we take 296 away from 316, we end up with 20.
Take the next digit (4) from the dividend and append it to 20, then repeat: 204 / 37

Step 5:
204 divided by 37 is 5 with a remainder of 19.
The next digit of our result is 5. 
Result so far: 1385.0
If we subtract 185 from 204, we get 19.
Bring next digit (2) of the dividend behind the 19 and repeat the process: 192 / 37

Advancing to step 6:
37 goes into 192 5 times with a remainder of 7.
The number 5 becomes the next digit in our result. 
Result so far: 13855.0
Subtracting 185 from 192 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
The number 37 fits into 70 1 times, leaving a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 13855.1
Subtract 37 from 70 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Advancing to step 8:
37 can be fit into 330 8 times, resulting in a remainder of 34.
Record the quotient 8 as the next digit in the result. 
Result so far: 13855.18
Subtracting 296 from 330 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 9:
The number 37 fits into 340 9 times, leaving a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 13855.189
Subtract 333 from 340 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 10:
70 divided by 37 is 1 with a remainder of 33.
Put 1 as the next digit of the answer. 
Result so far: 13855.1891
Subtract 37 from 70 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Advancing to step 11:
37 can be fit into 330 8 times, resulting in a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 13855.18918
Subtract 296 from 330 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 12:
If we divide 340 by 37, we get 9 and a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 13855.189189
Subtract 333 from 340 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 13:
The number 37 fits into 70 1 times, leaving a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 13855.1891891
If we subtract 37 from 70, we get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 14:
330 divided by 37 is 8 with a remainder of 34.
The next digit of our result is 8. 
Result so far: 13855.18918918
If we take 296 away from 330, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Our division results in 13855.18918918 with a remaining 3.4e-08.