We're dividing 4280731 by 642 
We want to divide 4280731 by 642.

Step 1:
If we divide 4 by 642, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 642

Let's proceed to step 2:
The number 642 fits into 42 0 times, leaving a remainder of 42.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 42, we end up with 42.
Bring next digit (8) of the dividend behind the 42 and repeat the process: 428 / 642

Let's proceed to step 3:
When dividing 428 by 642, we get 0 with a remainder of 428.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 428 leaves us with 428.
Grab the next digit (0) from the dividend, add it to 428, then carry on: 4280 / 642

Moving on to step 4:
4280 divided by 642 is 6 with a remainder of 428.
Use 6 as the next digit of our solution. 
Result so far: 6.0
Subtracting 3852 from 4280 leaves us with 428.
Include the next digit (7) from the dividend after 428, then repeat: 4287 / 642

Let's proceed to step 5:
642 goes into 4287 6 times with a remainder of 435.
Record the quotient 6 as the next digit in the result. 
Result so far: 66.0
Subtract 3852 from 4287 to get 435.
Take the next digit (3) from the dividend and append it to 435, then repeat: 4353 / 642

On to step 6:
The number 642 fits into 4353 6 times, leaving a remainder of 501.
Write down 6 as next digit of the result. 
Result so far: 666.0
Subtract 3852 from 4353 to get 501.
Append the next digit (1) from the dividend to 501 and continue with: 5011 / 642

Let's proceed to step 7:
When dividing 5011 by 642, we get 7 with a remainder of 517.
Put 7 as the next digit of the answer. 
Result so far: 6667.0
Subtracting 4494 from 5011 leaves us with 517.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5170, and continue the process.

On to step 8:
642 can be fit into 5170 8 times, resulting in a remainder of 34.
Put 8 as the next digit of the answer. 
Result so far: 6667.8
Deduct 5136 from 5170 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 9:
340 divided by 642 is 0 with a remainder of 340.
Record the quotient 0 as the next digit in the result. 
Result so far: 6667.8
If we subtract 0 from 340, we get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Moving on to step 10:
642 goes into 3400 5 times with a remainder of 190.
Write down 5 as next digit of the result. 
Result so far: 6667.805
If we subtract 3210 from 3400, we get 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Step 11:
The number 642 fits into 1900 2 times, leaving a remainder of 616.
The number 2 becomes the next digit in our result. 
Result so far: 6667.8052
If we take 1284 away from 1900, we end up with 616.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6160, and continue the process.

Let's proceed to step 12:
The number 642 fits into 6160 9 times, leaving a remainder of 382.
Put 9 as the next digit of the answer. 
Result so far: 6667.80529
Subtracting 5778 from 6160 leaves us with 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Going ahead to step 13:
642 can be fit into 3820 5 times, resulting in a remainder of 610.
Record the quotient 5 as the next digit in the result. 
Result so far: 6667.805295
Subtract 3210 from 3820 to get 610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6100, and continue the process.

Advancing to step 14:
If we divide 6100 by 642, we get 9 and a remainder of 322.
The number 9 becomes the next digit in our result. 
Result so far: 6667.8052959
Deduct 5778 from 6100 and we're left with 322.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3220, and continue the process.

Let's proceed to step 15:
642 goes into 3220 5 times with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 6667.80529595
Subtract 3210 from 3220 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.

The quotient of the division is 6667.80529595, and the remainder is 1e-08.