524152 divided by 31 
The aim is to understand the frequency of 31 in 524152.

Advancing to step 1:
31 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 31

Step 2:
If we divide 52 by 31, we get 1 and a remainder of 21.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 21 after subtracting 31 from 52.
Take the next digit (4) from the dividend and append it to 21, then repeat: 214 / 31

Let's proceed to step 3:
31 can be fit into 214 6 times, resulting in a remainder of 28.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Deduct 186 from 214 and we're left with 28.
Take the next digit (1) from the dividend and append it to 28, then repeat: 281 / 31

Let's proceed to step 4:
The number 31 fits into 281 9 times, leaving a remainder of 2.
The next digit of our result is 9. 
Result so far: 169.0
If we take 279 away from 281, we end up with 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 31

On to step 5:
The number 31 fits into 25 0 times, leaving a remainder of 25.
The next digit of our result is 0. 
Result so far: 1690.0
Subtracting 0 from 25 leaves us with 25.
Take the next digit (2) from the dividend and append it to 25, then repeat: 252 / 31

Moving on to step 6:
When dividing 252 by 31, we get 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 16908.0
If we take 248 away from 252, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 16908.1
If we take 31 away from 40, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 8:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 16908.12
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 9:
When dividing 280 by 31, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 16908.129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 10:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 16908.129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 11:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 16908.12903
If we take 93 away from 100, 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.

Advancing to step 12:
70 divided by 31 is 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 16908.129032
Subtracting 62 from 70 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 13:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 16908.1290322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 16908.1290322, and the remainder is 1.8e-07.