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

Let's proceed to step 1:
37 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 37

Step 2:
37 can be fit into 31 0 times, resulting in a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Bring next digit (7) of the dividend behind the 31 and repeat the process: 317 / 37

Moving on to step 3:
317 divided by 37 is 8 with a remainder of 21.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we take 296 away from 317, we end up with 21.
Take the next digit (4) from the dividend and append it to 21, then repeat: 214 / 37

Advancing to step 4:
214 divided by 37 is 5 with a remainder of 29.
The next digit of our result is 5. 
Result so far: 85.0
If we subtract 185 from 214, we get 29.
Fetch the next digit (3) from the dividend, attach it to 29 and continue: 293 / 37

Step 5:
If we divide 293 by 37, we get 7 and a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 857.0
Subtract 259 from 293 to get 34.
Include the next digit (1) from the dividend after 34, then repeat: 341 / 37

Advancing to step 6:
341 divided by 37 is 9 with a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 8579.0
Deduct 333 from 341 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 7:
When dividing 80 by 37, we get 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 8579.2
Subtract 74 from 80 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 8:
60 divided by 37 is 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 8579.21
The remainder is 23 after subtracting 37 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 9:
If we divide 230 by 37, we get 6 and a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 8579.216
Subtracting 222 from 230 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 10:
37 goes into 80 2 times with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 8579.2162
Subtract 74 from 80 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 11:
37 goes into 60 1 times with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 8579.21621
The remainder is 23 after subtracting 37 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 12:
37 can be fit into 230 6 times, resulting in a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 8579.216216
If we take 222 away from 230, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 13:
If we divide 80 by 37, we get 2 and a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 8579.2162162
Deduct 74 from 80 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 14:
The number 37 fits into 60 1 times, leaving a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 8579.21621621
The remainder is 23 after subtracting 37 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

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