We look at the division of 502277 by 4 
Let's see how many times 4 fits into 502277.

On to step 1:
4 goes into 5 1 times with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 4 from 5 and we're left with 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 4

Step 2:
10 divided by 4 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 8 from 10 and we're left with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 4

Advancing to step 3:
If we divide 22 by 4, we get 5 and a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 125.0
Subtracting 20 from 22 leaves us with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 4

Step 4:
If we divide 22 by 4, we get 5 and a remainder of 2.
The next digit of our result is 5. 
Result so far: 1255.0
Subtract 20 from 22 to get 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 4

Step 5:
4 goes into 27 6 times with a remainder of 3.
The next digit of our result is 6. 
Result so far: 12556.0
If we subtract 24 from 27, we get 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 4

Going ahead to step 6:
37 divided by 4 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 125569.0
Subtracting 36 from 37 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.

Advancing to step 7:
The number 4 fits into 10 2 times, leaving a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 125569.2
Subtracting 8 from 10 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
20 divided by 4 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 125569.25
Deduct 20 from 20 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 125569.25
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
4 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 125569.25
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 125569.25, and the remainder is 0.0.