We're dividing 31781006 by 887 
Let's see how many times 887 fits into 31781006.

Step 1:
The number 887 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 887

On to step 2:
887 can be fit into 31 0 times, resulting in a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Append the next digit (7) from the dividend to 31 and continue with: 317 / 887

Going ahead to step 3:
317 divided by 887 is 0 with a remainder of 317.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 317 leaves us with 317.
Fetch the next digit (8) from the dividend, attach it to 317 and continue: 3178 / 887

On to step 4:
The number 887 fits into 3178 3 times, leaving a remainder of 517.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 2661 from 3178 to get 517.
Take the next digit (1) from the dividend and append it to 517, then repeat: 5171 / 887

Going ahead to step 5:
The number 887 fits into 5171 5 times, leaving a remainder of 736.
Put 5 as the next digit of the answer. 
Result so far: 35.0
The remainder is 736 after subtracting 4435 from 5171.
Include the next digit (0) from the dividend after 736, then repeat: 7360 / 887

Moving on to step 6:
887 goes into 7360 8 times with a remainder of 264.
Write down 8 as next digit of the result. 
Result so far: 358.0
If we subtract 7096 from 7360, we get 264.
Grab the next digit (0) from the dividend, add it to 264, then carry on: 2640 / 887

Let's proceed to step 7:
The number 887 fits into 2640 2 times, leaving a remainder of 866.
Record the quotient 2 as the next digit in the result. 
Result so far: 3582.0
Subtracting 1774 from 2640 leaves us with 866.
Grab the next digit (6) from the dividend, add it to 866, then carry on: 8666 / 887

Advancing to step 8:
887 can be fit into 8666 9 times, resulting in a remainder of 683.
Use 9 as the next digit of our solution. 
Result so far: 35829.0
Deduct 7983 from 8666 and we're left with 683.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6830, and continue the process.

Advancing to step 9:
If we divide 6830 by 887, we get 7 and a remainder of 621.
Use 7 as the next digit of our solution. 
Result so far: 35829.7
If we take 6209 away from 6830, we end up with 621.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6210, and continue the process.

On to step 10:
The number 887 fits into 6210 7 times, leaving a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 35829.77
Subtract 6209 from 6210 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The quotient of the division is 35829.77, and the remainder is 0.001.