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

Going ahead to step 1:
When dividing 5 by 37, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 37

Going ahead to step 2:
51 divided by 37 is 1 with a remainder of 14.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 37 away from 51, we end up with 14.
Append the next digit (8) from the dividend to 14 and continue with: 148 / 37

Advancing to step 3:
37 can be fit into 148 4 times, resulting in a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 14.0
If we subtract 148 from 148, we get 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 37

On to step 4:
If we divide 7 by 37, we get 0 and a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 140.0
Subtract 0 from 7 to get 7.
Fetch the next digit (6) from the dividend, attach it to 7 and continue: 76 / 37

Advancing to step 5:
If we divide 76 by 37, we get 2 and a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 1402.0
Deduct 74 from 76 and we're left with 2.
Fetch the next digit (6) from the dividend, attach it to 2 and continue: 26 / 37

Going ahead to step 6:
When dividing 26 by 37, we get 0 with a remainder of 26.
Write down 0 as next digit of the result. 
Result so far: 14020.0
Deduct 0 from 26 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.

Advancing to step 7:
The number 37 fits into 260 7 times, leaving a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 14020.7
Deduct 259 from 260 and we're left 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.

Moving on to step 8:
10 divided by 37 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 14020.7
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.

Advancing to step 9:
When dividing 100 by 37, we get 2 with a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 14020.702
Subtract 74 from 100 to get 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 10:
If we divide 260 by 37, we get 7 and a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 14020.7027
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.

Step 11:
The number 37 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 14020.7027
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.

Let's proceed to step 12:
37 can be fit into 100 2 times, resulting in a remainder of 26.
Record the quotient 2 as the next digit in the result. 
Result so far: 14020.702702
Subtracting 74 from 100 leaves us 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 13:
When dividing 260 by 37, we get 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 14020.7027027
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.

Let's proceed to step 14:
The number 37 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 14020.7027027
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.

Our division results in 14020.7027027 with a remaining 1e-08.