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

On to step 1:
If we divide 1 by 37, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 37

Going ahead to step 2:
The number 37 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 10 and we're left with 10.
Grab the next digit (0) from the dividend, add it to 10, then carry on: 100 / 37

Advancing to step 3:
The number 37 fits into 100 2 times, leaving a remainder of 26.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 74 from 100 leaves us with 26.
Take the next digit (1) from the dividend and append it to 26, then repeat: 261 / 37

Step 4:
If we divide 261 by 37, we get 7 and a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 27.0
Deduct 259 from 261 and we're left with 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 37

Advancing to step 5:
When dividing 28 by 37, we get 0 with a remainder of 28.
Write down 0 as next digit of the result. 
Result so far: 270.0
The remainder is 28 after subtracting 0 from 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 6:
If we divide 280 by 37, we get 7 and a remainder of 21.
Use 7 as the next digit of our solution. 
Result so far: 270.7
Deduct 259 from 280 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 7:
If we divide 210 by 37, we get 5 and a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 270.75
If we take 185 away from 210, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 8:
37 can be fit into 250 6 times, resulting in a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 270.756
Subtract 222 from 250 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 9:
If we divide 280 by 37, we get 7 and a remainder of 21.
Write down 7 as next digit of the result. 
Result so far: 270.7567
If we subtract 259 from 280, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 10:
37 goes into 210 5 times with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 270.75675
Subtract 185 from 210 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 11:
250 divided by 37 is 6 with a remainder of 28.
Write down 6 as next digit of the result. 
Result so far: 270.756756
Subtract 222 from 250 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 12:
The number 37 fits into 280 7 times, leaving a remainder of 21.
Use 7 as the next digit of our solution. 
Result so far: 270.7567567
Deduct 259 from 280 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 13:
If we divide 210 by 37, we get 5 and a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 270.75675675
Deduct 185 from 210 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

The final result is 270.75675675 with a remainder of 2.5e-08.