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

Advancing to step 1:
37 can be fit into 7 0 times, resulting in a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 37

On to step 2:
37 goes into 79 2 times with a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 74 from 79, we get 5.
Bring next digit (7) of the dividend behind the 5 and repeat the process: 57 / 37

On to step 3:
When dividing 57 by 37, we get 1 with a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
Subtracting 37 from 57 leaves us with 20.
Bring next digit (4) of the dividend behind the 20 and repeat the process: 204 / 37

Let's proceed to step 4:
When dividing 204 by 37, we get 5 with a remainder of 19.
Record the quotient 5 as the next digit in the result. 
Result so far: 215.0
If we take 185 away from 204, we end up with 19.
Include the next digit (5) from the dividend after 19, then repeat: 195 / 37

Let's proceed to step 5:
195 divided by 37 is 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 2155.0
Subtracting 185 from 195 leaves us with 10.
Take the next digit (7) from the dividend and append it to 10, then repeat: 107 / 37

Advancing to step 6:
37 goes into 107 2 times with a remainder of 33.
Record the quotient 2 as the next digit in the result. 
Result so far: 21552.0
Subtract 74 from 107 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.

On to step 7:
37 goes into 330 8 times with a remainder of 34.
Put 8 as the next digit of the answer. 
Result so far: 21552.8
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.

Moving on to step 8:
340 divided by 37 is 9 with a remainder of 7.
The next digit of our result is 9. 
Result so far: 21552.89
The remainder is 7 after subtracting 333 from 340.
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 9:
70 divided by 37 is 1 with a remainder of 33.
Record the quotient 1 as the next digit in the result. 
Result so far: 21552.891
Deduct 37 from 70 and we're left 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.

Let's proceed to step 10:
The number 37 fits into 330 8 times, leaving a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 21552.8918
If we subtract 296 from 330, we 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.

Moving on to step 11:
If we divide 340 by 37, we get 9 and a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 21552.89189
The remainder is 7 after subtracting 333 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 12:
37 goes into 70 1 times with a remainder of 33.
The next digit of our result is 1. 
Result so far: 21552.891891
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.

On to step 13:
When dividing 330 by 37, we get 8 with a remainder of 34.
Record the quotient 8 as the next digit in the result. 
Result so far: 21552.8918918
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.

Going ahead to step 14:
If we divide 340 by 37, we get 9 and a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 21552.89189189
Subtracting 333 from 340 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.

The final result is 21552.89189189 with a remainder of 7e-09.