987796 divided by 37 
The aim is to understand the frequency of 37 in 987796.

Step 1:
If we divide 9 by 37, we get 0 and a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 37

Moving on to step 2:
When dividing 98 by 37, we get 2 with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 74 from 98 leaves us with 24.
Include the next digit (7) from the dividend after 24, then repeat: 247 / 37

Let's proceed to step 3:
247 divided by 37 is 6 with a remainder of 25.
Put 6 as the next digit of the answer. 
Result so far: 26.0
Subtract 222 from 247 to get 25.
Take the next digit (7) from the dividend and append it to 25, then repeat: 257 / 37

Step 4:
The number 37 fits into 257 6 times, leaving a remainder of 35.
The next digit of our result is 6. 
Result so far: 266.0
The remainder is 35 after subtracting 222 from 257.
Take the next digit (9) from the dividend and append it to 35, then repeat: 359 / 37

Let's proceed to step 5:
37 can be fit into 359 9 times, resulting in a remainder of 26.
Put 9 as the next digit of the answer. 
Result so far: 2669.0
If we subtract 333 from 359, we get 26.
Fetch the next digit (6) from the dividend, attach it to 26 and continue: 266 / 37

Let's proceed to step 6:
37 goes into 266 7 times with a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 26697.0
If we subtract 259 from 266, we 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 7:
70 divided by 37 is 1 with a remainder of 33.
Put 1 as the next digit of the answer. 
Result so far: 26697.1
If we take 37 away from 70, we end up with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 8:
The number 37 fits into 330 8 times, leaving a remainder of 34.
Record the quotient 8 as the next digit in the result. 
Result so far: 26697.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.

Moving on to step 9:
The number 37 fits into 340 9 times, leaving a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 26697.189
If we take 333 away from 340, we end up 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.

Advancing to step 10:
The number 37 fits into 70 1 times, leaving a remainder of 33.
Write down 1 as next digit of the result. 
Result so far: 26697.1891
Subtracting 37 from 70 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Step 11:
330 divided by 37 is 8 with a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 26697.18918
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.

On to step 12:
37 can be fit into 340 9 times, resulting in a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 26697.189189
If we subtract 333 from 340, we 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 13:
37 can be fit into 70 1 times, resulting in a remainder of 33.
The next digit of our result is 1. 
Result so far: 26697.1891891
If we take 37 away from 70, we end up with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

On to step 14:
When dividing 330 by 37, we get 8 with a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 26697.18918918
The remainder is 34 after subtracting 296 from 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

The final outcome is 26697.18918918, with a leftover of 3.4e-08.