We divide 506258 by 22
We want to divide 506258 by 22.

Advancing to step 1:
The number 22 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 22

Going ahead to step 2:
22 goes into 50 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 44 from 50 leaves us with 6.
Include the next digit (6) from the dividend after 6, then repeat: 66 / 22

Step 3:
66 divided by 22 is 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
Subtract 66 from 66 to get 0.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 22

Going ahead to step 4:
If we divide 2 by 22, we get 0 and a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 230.0
Subtracting 0 from 2 leaves us with 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 22

Moving on to step 5:
The number 22 fits into 25 1 times, leaving a remainder of 3.
The next digit of our result is 1. 
Result so far: 2301.0
Subtracting 22 from 25 leaves us with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 22

On to step 6:
22 goes into 38 1 times with a remainder of 16.
Record the quotient 1 as the next digit in the result. 
Result so far: 23011.0
The remainder is 16 after subtracting 22 from 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 7:
The number 22 fits into 160 7 times, leaving a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 23011.7
Subtracting 154 from 160 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
If we divide 60 by 22, we get 2 and a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 23011.72
Subtract 44 from 60 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 9:
160 divided by 22 is 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 23011.727
If we subtract 154 from 160, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 10:
22 can be fit into 60 2 times, resulting in a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 23011.7272
Deduct 44 from 60 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 11:
If we divide 160 by 22, we get 7 and a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 23011.72727
If we subtract 154 from 160, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 12:
When dividing 60 by 22, we get 2 with a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 23011.727272
The remainder is 16 after subtracting 44 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 13:
If we divide 160 by 22, we get 7 and a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 23011.7272727
Deduct 154 from 160 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 14:
22 can be fit into 60 2 times, resulting in a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 23011.72727272
If we take 44 away from 60, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

The final result is 23011.72727272 with a remainder of 1.6e-08.