We're dividing 351231 by 37 
The aim is to understand the frequency of 37 in 351231.

Going ahead to step 1:
The number 37 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (5) from the dividend and append it to 3, then repeat: 35 / 37

Let's proceed to step 2:
35 divided by 37 is 0 with a remainder of 35.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 35 after subtracting 0 from 35.
Include the next digit (1) from the dividend after 35, then repeat: 351 / 37

Let's proceed to step 3:
351 divided by 37 is 9 with a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
The remainder is 18 after subtracting 333 from 351.
Fetch the next digit (2) from the dividend, attach it to 18 and continue: 182 / 37

Advancing to step 4:
37 goes into 182 4 times with a remainder of 34.
Record the quotient 4 as the next digit in the result. 
Result so far: 94.0
Subtract 148 from 182 to get 34.
Bring next digit (3) of the dividend behind the 34 and repeat the process: 343 / 37

On to step 5:
37 goes into 343 9 times with a remainder of 10.
Put 9 as the next digit of the answer. 
Result so far: 949.0
If we subtract 333 from 343, we get 10.
Fetch the next digit (1) from the dividend, attach it to 10 and continue: 101 / 37

On to step 6:
When dividing 101 by 37, we get 2 with a remainder of 27.
Use 2 as the next digit of our solution. 
Result so far: 9492.0
If we take 74 away from 101, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
37 goes into 270 7 times with a remainder of 11.
The next digit of our result is 7. 
Result so far: 9492.7
Subtracting 259 from 270 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 8:
37 goes into 110 2 times with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 9492.72
Deduct 74 from 110 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 9:
37 goes into 360 9 times with a remainder of 27.
Use 9 as the next digit of our solution. 
Result so far: 9492.729
If we subtract 333 from 360, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 10:
37 can be fit into 270 7 times, resulting in a remainder of 11.
Write down 7 as next digit of the result. 
Result so far: 9492.7297
Subtracting 259 from 270 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 11:
110 divided by 37 is 2 with a remainder of 36.
The next digit of our result is 2. 
Result so far: 9492.72972
If we take 74 away from 110, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 12:
When dividing 360 by 37, we get 9 with a remainder of 27.
Record the quotient 9 as the next digit in the result. 
Result so far: 9492.729729
Deduct 333 from 360 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 13:
37 goes into 270 7 times with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 9492.7297297
Deduct 259 from 270 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 14:
37 goes into 110 2 times with a remainder of 36.
The next digit of our result is 2. 
Result so far: 9492.72972972
If we take 74 away from 110, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

The final result is 9492.72972972 with a remainder of 3.6e-08.