We divide 401029 by 37
The aim is to understand the frequency of 37 in 401029.

On to step 1:
If we divide 4 by 37, we get 0 and a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 37

Advancing to step 2:
The number 37 fits into 40 1 times, leaving a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 37 from 40, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 37

Step 3:
When dividing 31 by 37, we get 0 with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 10.0
The remainder is 31 after subtracting 0 from 31.
Include the next digit (0) from the dividend after 31, then repeat: 310 / 37

On to step 4:
When dividing 310 by 37, we get 8 with a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 108.0
Subtracting 296 from 310 leaves us with 14.
Take the next digit (2) from the dividend and append it to 14, then repeat: 142 / 37

Moving on to step 5:
37 goes into 142 3 times with a remainder of 31.
Record the quotient 3 as the next digit in the result. 
Result so far: 1083.0
Deduct 111 from 142 and we're left with 31.
Grab the next digit (9) from the dividend, add it to 31, then carry on: 319 / 37

Advancing to step 6:
The number 37 fits into 319 8 times, leaving a remainder of 23.
Write down 8 as next digit of the result. 
Result so far: 10838.0
The remainder is 23 after subtracting 296 from 319.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 7:
230 divided by 37 is 6 with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 10838.6
Subtract 222 from 230 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
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: 10838.62
If we take 74 away from 80, we end up 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.

On to step 9:
37 can be fit into 60 1 times, resulting in a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 10838.621
Deduct 37 from 60 and we're left with 23.
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 10:
The number 37 fits into 230 6 times, leaving a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 10838.6216
Subtract 222 from 230 to get 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 11:
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: 10838.62162
Subtracting 74 from 80 leaves us 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.

Let's proceed to step 12:
60 divided by 37 is 1 with a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 10838.621621
Subtract 37 from 60 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
The number 37 fits into 230 6 times, leaving a remainder of 8.
The next digit of our result is 6. 
Result so far: 10838.6216216
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.

Step 14:
37 goes into 80 2 times with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 10838.62162162
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.

The final result is 10838.62162162 with a remainder of 6e-09.