We're dividing 40586162 by 947 
We want to divide 40586162 by 947.

Moving on to step 1:
If we divide 4 by 947, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 947

Advancing to step 2:
The number 947 fits into 40 0 times, leaving a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 947

Moving on to step 3:
947 goes into 405 0 times with a remainder of 405.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 405, we get 405.
Take the next digit (8) from the dividend and append it to 405, then repeat: 4058 / 947

Moving on to step 4:
The number 947 fits into 4058 4 times, leaving a remainder of 270.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 3788 from 4058 leaves us with 270.
Append the next digit (6) from the dividend to 270 and continue with: 2706 / 947

Step 5:
The number 947 fits into 2706 2 times, leaving a remainder of 812.
Write down 2 as next digit of the result. 
Result so far: 42.0
Subtract 1894 from 2706 to get 812.
Bring next digit (1) of the dividend behind the 812 and repeat the process: 8121 / 947

Step 6:
8121 divided by 947 is 8 with a remainder of 545.
Use 8 as the next digit of our solution. 
Result so far: 428.0
The remainder is 545 after subtracting 7576 from 8121.
Append the next digit (6) from the dividend to 545 and continue with: 5456 / 947

Let's proceed to step 7:
947 goes into 5456 5 times with a remainder of 721.
The next digit of our result is 5. 
Result so far: 4285.0
The remainder is 721 after subtracting 4735 from 5456.
Take the next digit (2) from the dividend and append it to 721, then repeat: 7212 / 947

Moving on to step 8:
When dividing 7212 by 947, we get 7 with a remainder of 583.
Record the quotient 7 as the next digit in the result. 
Result so far: 42857.0
Subtract 6629 from 7212 to get 583.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5830, and continue the process.

Going ahead to step 9:
The number 947 fits into 5830 6 times, leaving a remainder of 148.
Use 6 as the next digit of our solution. 
Result so far: 42857.6
Deduct 5682 from 5830 and we're left with 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Going ahead to step 10:
If we divide 1480 by 947, we get 1 and a remainder of 533.
Record the quotient 1 as the next digit in the result. 
Result so far: 42857.61
Subtract 947 from 1480 to get 533.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5330, and continue the process.

Moving on to step 11:
When dividing 5330 by 947, we get 5 with a remainder of 595.
Write down 5 as next digit of the result. 
Result so far: 42857.615
Subtracting 4735 from 5330 leaves us with 595.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5950, and continue the process.

On to step 12:
947 can be fit into 5950 6 times, resulting in a remainder of 268.
The next digit of our result is 6. 
Result so far: 42857.6156
If we take 5682 away from 5950, we end up with 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Step 13:
When dividing 2680 by 947, we get 2 with a remainder of 786.
Put 2 as the next digit of the answer. 
Result so far: 42857.61562
Subtract 1894 from 2680 to get 786.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7860, and continue the process.

On to step 14:
947 can be fit into 7860 8 times, resulting in a remainder of 284.
The next digit of our result is 8. 
Result so far: 42857.615628
If we take 7576 away from 7860, we end up with 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

Step 15:
If we divide 2840 by 947, we get 2 and a remainder of 946.
Write down 2 as next digit of the result. 
Result so far: 42857.6156282
If we subtract 1894 from 2840, we get 946.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9460, and continue the process.

Going ahead to step 16:
947 goes into 9460 9 times with a remainder of 937.
The next digit of our result is 9. 
Result so far: 42857.61562829
The remainder is 937 after subtracting 8523 from 9460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9370, and continue the process.

The final outcome is 42857.61562829, with a leftover of 9.37e-07.