We divide 505831 by 4
We want to divide 505831 by 4.

Going ahead to step 1:
The number 4 fits into 5 1 times, leaving a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 4 from 5, we get 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 4

On to step 2:
4 goes into 10 2 times with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 12.0
If we subtract 8 from 10, we get 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 4

On to step 3:
4 goes into 25 6 times with a remainder of 1.
Write down 6 as next digit of the result. 
Result so far: 126.0
The remainder is 1 after subtracting 24 from 25.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 4

Advancing to step 4:
4 can be fit into 18 4 times, resulting in a remainder of 2.
The next digit of our result is 4. 
Result so far: 1264.0
The remainder is 2 after subtracting 16 from 18.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 4

Moving on to step 5:
4 can be fit into 23 5 times, resulting in a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 12645.0
Subtracting 20 from 23 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 4

On to step 6:
4 goes into 31 7 times with a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 126457.0
The remainder is 3 after subtracting 28 from 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
4 can be fit into 30 7 times, resulting in a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 126457.7
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
4 can be fit into 20 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 126457.75
If we subtract 20 from 20, we 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.

Step 9:
4 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 126457.75
Deduct 0 from 0 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.

Let's proceed to step 10:
4 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 126457.75
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.

The final outcome is 126457.75, with a leftover of 0.0.