Let's divide 540658 by 7
Our goal is to divide 540658 by 7.

Going ahead to step 1:
7 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 7

On to step 2:
7 can be fit into 54 7 times, resulting in a remainder of 5.
The next digit of our result is 7. 
Result so far: 7.0
If we take 49 away from 54, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 7

Step 3:
7 goes into 50 7 times with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 77.0
If we take 49 away from 50, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 7

Advancing to step 4:
The number 7 fits into 16 2 times, leaving a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 772.0
Deduct 14 from 16 and we're left with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 7

Step 5:
When dividing 25 by 7, we get 3 with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 7723.0
Subtracting 21 from 25 leaves us with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 7

Step 6:
48 divided by 7 is 6 with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 77236.0
Subtract 42 from 48 to 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 7:
When dividing 60 by 7, we get 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 77236.8
If we take 56 away from 60, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
7 can be fit into 40 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 77236.85
Deduct 35 from 40 and we're left 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.

Let's proceed to step 9:
50 divided by 7 is 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 77236.857
If we subtract 49 from 50, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 10:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 77236.8571
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 11:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 77236.85714
If we subtract 28 from 30, 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.

Advancing to step 12:
20 divided by 7 is 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 77236.857142
Subtract 14 from 20 to 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.

On to step 13:
7 goes into 60 8 times with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 77236.8571428
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 14:
40 divided by 7 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 77236.85714285
If we take 35 away from 40, we end up 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.

The final outcome is 77236.85714285, with a leftover of 5e-09.