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

Let's proceed to step 1:
3 divided by 37 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 37

Step 2:
When dividing 39 by 37, we get 1 with 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.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 37

On to step 3:
The number 37 fits into 27 0 times, leaving a remainder of 27.
The next digit of our result is 0. 
Result so far: 10.0
Subtracting 0 from 27 leaves us with 27.
Take the next digit (6) from the dividend and append it to 27, then repeat: 276 / 37

On to step 4:
37 goes into 276 7 times with a remainder of 17.
Record the quotient 7 as the next digit in the result. 
Result so far: 107.0
Subtract 259 from 276 to get 17.
Append the next digit (4) from the dividend to 17 and continue with: 174 / 37

Let's proceed to step 5:
When dividing 174 by 37, we get 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 1074.0
If we take 148 away from 174, we end up with 26.
Include the next digit (6) from the dividend after 26, then repeat: 266 / 37

Step 6:
The number 37 fits into 266 7 times, leaving a remainder of 7.
The next digit of our result is 7. 
Result so far: 10747.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.

On to step 7:
When dividing 70 by 37, we get 1 with a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 10747.1
Subtract 37 from 70 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.

Advancing to step 8:
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: 10747.18
Subtract 296 from 330 to 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.

Let's proceed to step 9:
If we divide 340 by 37, we get 9 and a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 10747.189
Deduct 333 from 340 and we're left 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.

Step 10:
70 divided by 37 is 1 with a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 10747.1891
If we subtract 37 from 70, we 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.

Step 11:
330 divided by 37 is 8 with a remainder of 34.
The next digit of our result is 8. 
Result so far: 10747.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.

Advancing to step 12:
If we divide 340 by 37, we get 9 and a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 10747.189189
Deduct 333 from 340 and we're left 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.

Step 13:
37 can be fit into 70 1 times, resulting in a remainder of 33.
Write down 1 as next digit of the result. 
Result so far: 10747.1891891
If we subtract 37 from 70, we 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.

Let's proceed to step 14:
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: 10747.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.

After the division, we end up with 10747.18918918 and a remainder of 3.4e-08.