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

Going ahead to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 31

Let's proceed to step 2:
31 can be fit into 15 0 times, resulting in a remainder of 15.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 15 leaves us with 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 31

Step 3:
If we divide 158 by 31, we get 5 and a remainder of 3.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtract 155 from 158 to get 3.
Take the next digit (2) from the dividend and append it to 3, then repeat: 32 / 31

Let's proceed to step 4:
31 goes into 32 1 times with a remainder of 1.
The next digit of our result is 1. 
Result so far: 51.0
If we take 31 away from 32, we end up with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 31

On to step 5:
15 divided by 31 is 0 with a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 510.0
If we take 0 away from 15, we end up with 15.
Bring next digit (6) of the dividend behind the 15 and repeat the process: 156 / 31

Advancing to step 6:
31 can be fit into 156 5 times, resulting in a remainder of 1.
The number 5 becomes the next digit in our result. 
Result so far: 5105.0
The remainder is 1 after subtracting 155 from 156.
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 7:
When dividing 10 by 31, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 5105.0
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 5105.03
Subtracting 93 from 100 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 31, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 5105.032
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.

On to step 10:
If we divide 80 by 31, we get 2 and a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 5105.0322
The remainder is 18 after subtracting 62 from 80.
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 5105.0322, and the remainder is 0.00018.