We're dividing 522221 by 13 
We want to divide 522221 by 13.

Step 1:
5 divided by 13 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 13

Let's proceed to step 2:
The number 13 fits into 52 4 times, leaving a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 0 after subtracting 52 from 52.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 13

Moving on to step 3:
13 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
Subtract 0 from 2 to get 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 13

Going ahead to step 4:
22 divided by 13 is 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 401.0
The remainder is 9 after subtracting 13 from 22.
Take the next digit (2) from the dividend and append it to 9, then repeat: 92 / 13

On to step 5:
13 goes into 92 7 times with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 4017.0
If we take 91 away from 92, we end up with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 13

Going ahead to step 6:
The number 13 fits into 11 0 times, leaving a remainder of 11.
Use 0 as the next digit of our solution. 
Result so far: 40170.0
Subtracting 0 from 11 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
13 goes into 110 8 times with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 40170.8
If we subtract 104 from 110, 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.

Advancing to step 8:
13 goes into 60 4 times with a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 40170.84
Subtracting 52 from 60 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 9:
13 can be fit into 80 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 40170.846
If we take 78 away from 80, we end up 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.

Let's proceed to step 10:
When dividing 20 by 13, we get 1 with a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 40170.8461
If we take 13 away from 20, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
When dividing 70 by 13, we get 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 40170.84615
The remainder is 5 after subtracting 65 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 12:
If we divide 50 by 13, we get 3 and a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 40170.846153
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 13:
If we divide 110 by 13, we get 8 and a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 40170.8461538
The remainder is 6 after subtracting 104 from 110.
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:
13 goes into 60 4 times with a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 40170.84615384
If we subtract 52 from 60, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 40170.84615384 with a balance of 8e-09.