Let's divide 540572 by 6
We want to figure out the number of times 540572 can be divided by 6.

On to step 1:
When dividing 5 by 6, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 6

Going ahead to step 2:
54 divided by 6 is 9 with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 54 from 54, we get 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 6

Going ahead to step 3:
0 divided by 6 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 90.0
Deduct 0 from 0 and we're left with 0.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 6

On to step 4:
5 divided by 6 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 900.0
If we take 0 away from 5, we end up with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 6

Going ahead to step 5:
When dividing 57 by 6, we get 9 with a remainder of 3.
The next digit of our result is 9. 
Result so far: 9009.0
Subtract 54 from 57 to get 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 6

Moving on to step 6:
6 goes into 32 5 times with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 90095.0
Deduct 30 from 32 and we're left 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.

Going ahead to step 7:
The number 6 fits into 20 3 times, leaving a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 90095.3
If we subtract 18 from 20, we 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.

On to step 8:
6 goes into 20 3 times with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 90095.33
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.

Our division results in 90095.33 with a remaining 0.002.