Let's divide 512021 by 9
We want to divide 512021 by 9.

Advancing to step 1:
The number 9 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 9

Moving on to step 2:
The number 9 fits into 51 5 times, leaving a remainder of 6.
The next digit of our result is 5. 
Result so far: 5.0
Deduct 45 from 51 and we're left with 6.
Grab the next digit (2) from the dividend, add it to 6, then carry on: 62 / 9

Step 3:
9 can be fit into 62 6 times, resulting in a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 56.0
Subtracting 54 from 62 leaves us with 8.
Include the next digit (0) from the dividend after 8, then repeat: 80 / 9

Moving on to step 4:
If we divide 80 by 9, we get 8 and a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 568.0
The remainder is 8 after subtracting 72 from 80.
Fetch the next digit (2) from the dividend, attach it to 8 and continue: 82 / 9

Moving on to step 5:
If we divide 82 by 9, we get 9 and a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 5689.0
Subtract 81 from 82 to get 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 9

On to step 6:
9 can be fit into 11 1 times, resulting in a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 56891.0
Subtract 9 from 11 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.

Step 7:
When dividing 20 by 9, we get 2 with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 56891.2
Subtract 18 from 20 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.

Advancing to step 8:
The number 9 fits into 20 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 56891.22
Subtracting 18 from 20 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.

In conclusion, the division gives 56891.22 with a balance of 0.002.