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

Step 1:
When dividing 2 by 37, we get 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 37

On to step 2:
37 goes into 29 0 times with a remainder of 29.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 29, we get 29.
Include the next digit (1) from the dividend after 29, then repeat: 291 / 37

On to step 3:
37 goes into 291 7 times with a remainder of 32.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we take 259 away from 291, we end up with 32.
Include the next digit (3) from the dividend after 32, then repeat: 323 / 37

Advancing to step 4:
When dividing 323 by 37, we get 8 with a remainder of 27.
Use 8 as the next digit of our solution. 
Result so far: 78.0
Subtracting 296 from 323 leaves us with 27.
Grab the next digit (7) from the dividend, add it to 27, then carry on: 277 / 37

Let's proceed to step 5:
If we divide 277 by 37, we get 7 and a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 787.0
If we subtract 259 from 277, we get 18.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 37

Moving on to step 6:
181 divided by 37 is 4 with a remainder of 33.
Write down 4 as next digit of the result. 
Result so far: 7874.0
The remainder is 33 after subtracting 148 from 181.
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 7:
37 goes into 330 8 times with a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 7874.8
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.

On to step 8:
37 can be fit into 340 9 times, resulting in a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 7874.89
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.

On to step 9:
If we divide 70 by 37, we get 1 and a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 7874.891
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 10:
37 can be fit into 330 8 times, resulting in a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 7874.8918
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 11:
When dividing 340 by 37, we get 9 with a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 7874.89189
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.

On to step 12:
70 divided by 37 is 1 with a remainder of 33.
Put 1 as the next digit of the answer. 
Result so far: 7874.891891
The remainder is 33 after subtracting 37 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 13:
330 divided by 37 is 8 with a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 7874.8918918
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.

Going ahead to step 14:
37 goes into 340 9 times with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 7874.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.

Our division results in 7874.89189189 with a remaining 7e-09.