Let's divide 512237 by 5
Our goal is to divide 512237 by 5.

On to step 1:
5 can be fit into 5 1 times, resulting in a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 5 from 5 leaves us with 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 5

Advancing to step 2:
If we divide 1 by 5, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 1, we end up with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 5

Step 3:
5 goes into 12 2 times with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 102.0
Subtracting 10 from 12 leaves us with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 5

Step 4:
5 goes into 22 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 1024.0
Subtracting 20 from 22 leaves us with 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 5

On to step 5:
5 goes into 23 4 times with a remainder of 3.
The next digit of our result is 4. 
Result so far: 10244.0
If we subtract 20 from 23, we get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 5

Advancing to step 6:
37 divided by 5 is 7 with a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 102447.0
Subtract 35 from 37 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 7:
5 goes into 20 4 times with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 102447.4
The remainder is 0 after subtracting 20 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 102447.4
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.

Let's proceed to step 9:
5 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 102447.4
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 102447.4 and a remainder of 0.0.