Let's divide 874161 by 31
Let's see how many times 31 fits into 874161.

Step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 31

Step 2:
31 can be fit into 87 2 times, resulting in a remainder of 25.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 62 from 87 to get 25.
Bring next digit (4) of the dividend behind the 25 and repeat the process: 254 / 31

On to step 3:
If we divide 254 by 31, we get 8 and a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 28.0
The remainder is 6 after subtracting 248 from 254.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 31

On to step 4:
31 can be fit into 61 1 times, resulting in a remainder of 30.
Record the quotient 1 as the next digit in the result. 
Result so far: 281.0
If we take 31 away from 61, we end up with 30.
Include the next digit (6) from the dividend after 30, then repeat: 306 / 31

On to step 5:
31 can be fit into 306 9 times, resulting in a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 2819.0
The remainder is 27 after subtracting 279 from 306.
Include the next digit (1) from the dividend after 27, then repeat: 271 / 31

On to step 6:
31 can be fit into 271 8 times, resulting in a remainder of 23.
Record the quotient 8 as the next digit in the result. 
Result so far: 28198.0
If we subtract 248 from 271, we 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 7:
31 goes into 230 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 28198.7
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 8:
31 goes into 130 4 times with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 28198.74
Subtracting 124 from 130 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 9:
The number 31 fits into 60 1 times, leaving a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 28198.741
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 10:
When dividing 290 by 31, we get 9 with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 28198.7419
If we take 279 away from 290, we end up 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:
The number 31 fits into 110 3 times, leaving a remainder of 17.
The next digit of our result is 3. 
Result so far: 28198.74193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 12:
If we divide 170 by 31, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 28198.741935
Subtracting 155 from 170 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 13:
150 divided by 31 is 4 with a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 28198.7419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 14:
31 can be fit into 260 8 times, resulting in a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 28198.74193548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 28198.74193548 with a remaining 1.2e-08.