Let's divide 542318 by 45
Our goal is to divide 542318 by 45.

Let's proceed to step 1:
5 divided by 45 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 45

Advancing to step 2:
If we divide 54 by 45, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 9 after subtracting 45 from 54.
Fetch the next digit (2) from the dividend, attach it to 9 and continue: 92 / 45

Going ahead to step 3:
When dividing 92 by 45, we get 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 12.0
The remainder is 2 after subtracting 90 from 92.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 45

On to step 4:
45 goes into 23 0 times with a remainder of 23.
Record the quotient 0 as the next digit in the result. 
Result so far: 120.0
If we subtract 0 from 23, we get 23.
Include the next digit (1) from the dividend after 23, then repeat: 231 / 45

Step 5:
The number 45 fits into 231 5 times, leaving a remainder of 6.
The next digit of our result is 5. 
Result so far: 1205.0
Subtract 225 from 231 to get 6.
Append the next digit (8) from the dividend to 6 and continue with: 68 / 45

Step 6:
The number 45 fits into 68 1 times, leaving a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 12051.0
The remainder is 23 after subtracting 45 from 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 7:
If we divide 230 by 45, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 12051.5
Subtract 225 from 230 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 8:
50 divided by 45 is 1 with a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 12051.51
Subtracting 45 from 50 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 9:
When dividing 50 by 45, we get 1 with a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 12051.511
Subtracting 45 from 50 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

After the division, we end up with 12051.511 and a remainder of 0.0005.