We're dividing 502526 by 40 
Our goal is to divide 502526 by 40.

Going ahead to step 1:
40 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 40

Advancing to step 2:
40 goes into 50 1 times with a remainder of 10.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 40 from 50 leaves us with 10.
Grab the next digit (2) from the dividend, add it to 10, then carry on: 102 / 40

On to step 3:
40 can be fit into 102 2 times, resulting in a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Deduct 80 from 102 and we're left with 22.
Append the next digit (5) from the dividend to 22 and continue with: 225 / 40

Advancing to step 4:
40 can be fit into 225 5 times, resulting in a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 125.0
Subtract 200 from 225 to get 25.
Fetch the next digit (2) from the dividend, attach it to 25 and continue: 252 / 40

Moving on to step 5:
40 can be fit into 252 6 times, resulting in a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 1256.0
If we subtract 240 from 252, we get 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 40

Advancing to step 6:
40 goes into 126 3 times with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 12563.0
If we take 120 away from 126, we end up 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 7:
40 can be fit into 60 1 times, resulting in a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 12563.1
The remainder is 20 after subtracting 40 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 12563.15
Subtract 200 from 200 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.

Going ahead to step 9:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12563.15
If we subtract 0 from 0, 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.

Going ahead to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12563.15
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.

Our division results in 12563.15 with a remaining 0.0.