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

Step 1:
37 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 37

Going ahead to step 2:
The number 37 fits into 39 1 times, leaving a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 2 after subtracting 37 from 39.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 37

Moving on to step 3:
If we divide 28 by 37, we get 0 and a remainder of 28.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 28, we end up with 28.
Grab the next digit (8) from the dividend, add it to 28, then carry on: 288 / 37

Advancing to step 4:
288 divided by 37 is 7 with a remainder of 29.
Write down 7 as next digit of the result. 
Result so far: 107.0
If we subtract 259 from 288, we get 29.
Take the next digit (3) from the dividend and append it to 29, then repeat: 293 / 37

Step 5:
37 goes into 293 7 times with a remainder of 34.
Record the quotient 7 as the next digit in the result. 
Result so far: 1077.0
If we subtract 259 from 293, we get 34.
Take the next digit (3) from the dividend and append it to 34, then repeat: 343 / 37

On to step 6:
37 goes into 343 9 times with a remainder of 10.
The next digit of our result is 9. 
Result so far: 10779.0
The remainder is 10 after subtracting 333 from 343.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 7:
When dividing 100 by 37, we get 2 with a remainder of 26.
Put 2 as the next digit of the answer. 
Result so far: 10779.2
If we subtract 74 from 100, we 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 8:
260 divided by 37 is 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 10779.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.

Advancing to step 9:
37 can be fit into 10 0 times, resulting in a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 10779.27
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 10:
37 can be fit into 100 2 times, resulting in a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 10779.2702
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.

Going ahead to step 11:
If we divide 260 by 37, we get 7 and a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 10779.27027
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 12:
37 can be fit into 10 0 times, resulting in a remainder of 10.
The next digit of our result is 0. 
Result so far: 10779.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.

Let's proceed to step 13:
When dividing 100 by 37, we get 2 with a remainder of 26.
The next digit of our result is 2. 
Result so far: 10779.2702702
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 14:
260 divided by 37 is 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 10779.27027027
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.

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