Let's divide 291742 by 31
We're looking to find how many times 31 goes into 291742.

On to step 1:
If we divide 2 by 31, we get 0 and a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 31

Step 2:
If we divide 29 by 31, we get 0 and a remainder of 29.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 29 to get 29.
Take the next digit (1) from the dividend and append it to 29, then repeat: 291 / 31

Advancing to step 3:
The number 31 fits into 291 9 times, leaving a remainder of 12.
Write down 9 as next digit of the result. 
Result so far: 9.0
Deduct 279 from 291 and we're left with 12.
Append the next digit (7) from the dividend to 12 and continue with: 127 / 31

Let's proceed to step 4:
31 goes into 127 4 times with a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 94.0
Deduct 124 from 127 and we're left with 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 31

Let's proceed to step 5:
When dividing 34 by 31, we get 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 941.0
If we take 31 away from 34, we end up with 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 31

On to step 6:
31 can be fit into 32 1 times, resulting in a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 9411.0
Subtracting 31 from 32 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
31 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 9411.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.

Let's proceed to step 8:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 9411.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.

Moving on to step 9:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 9411.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.

Going ahead to step 10:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 9411.0322
If we take 62 away from 80, we end up with 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 final outcome is 9411.0322, with a leftover of 0.00018.