540586 divided by 7 
We're looking to find how many times 7 goes into 540586.

Let's proceed to step 1:
7 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 7

Advancing to step 2:
7 goes into 54 7 times with a remainder of 5.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 49 from 54 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 7

On to step 3:
7 goes into 50 7 times with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 77.0
Subtract 49 from 50 to get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 7

Moving on to step 4:
7 goes into 15 2 times with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 772.0
If we take 14 away from 15, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 7

Moving on to step 5:
The number 7 fits into 18 2 times, leaving a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 7722.0
The remainder is 4 after subtracting 14 from 18.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 7

Going ahead to step 6:
The number 7 fits into 46 6 times, leaving a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 77226.0
If we take 42 away from 46, 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.

Going ahead to step 7:
7 goes into 40 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 77226.5
Subtracting 35 from 40 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.

Advancing to step 8:
50 divided by 7 is 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 77226.57
The remainder is 1 after subtracting 49 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 9:
7 goes into 10 1 times with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 77226.571
If we take 7 away from 10, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 10:
30 divided by 7 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 77226.5714
Deduct 28 from 30 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.

Step 11:
7 goes into 20 2 times with a remainder of 6.
The next digit of our result is 2. 
Result so far: 77226.57142
Subtracting 14 from 20 leaves us 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.

Moving on to step 12:
When dividing 60 by 7, we get 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 77226.571428
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.

Going ahead to step 13:
When dividing 40 by 7, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 77226.5714285
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 14:
The number 7 fits into 50 7 times, leaving a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 77226.57142857
If we take 49 away from 50, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The quotient of the division is 77226.57142857, and the remainder is 1e-09.