We look at the division of 40542311 by 666 
Let's see how many times 666 fits into 40542311.

Going ahead to step 1:
666 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 666

Let's proceed to step 2:
When dividing 40 by 666, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (5) from the dividend, attach it to 40 and continue: 405 / 666

Advancing to step 3:
666 can be fit into 405 0 times, resulting in a remainder of 405.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 405 after subtracting 0 from 405.
Append the next digit (4) from the dividend to 405 and continue with: 4054 / 666

On to step 4:
If we divide 4054 by 666, we get 6 and a remainder of 58.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 58 after subtracting 3996 from 4054.
Include the next digit (2) from the dividend after 58, then repeat: 582 / 666

Step 5:
If we divide 582 by 666, we get 0 and a remainder of 582.
The next digit of our result is 0. 
Result so far: 60.0
If we take 0 away from 582, we end up with 582.
Bring next digit (3) of the dividend behind the 582 and repeat the process: 5823 / 666

Let's proceed to step 6:
666 can be fit into 5823 8 times, resulting in a remainder of 495.
The number 8 becomes the next digit in our result. 
Result so far: 608.0
Subtract 5328 from 5823 to get 495.
Append the next digit (1) from the dividend to 495 and continue with: 4951 / 666

On to step 7:
666 goes into 4951 7 times with a remainder of 289.
The next digit of our result is 7. 
Result so far: 6087.0
Subtract 4662 from 4951 to get 289.
Fetch the next digit (1) from the dividend, attach it to 289 and continue: 2891 / 666

Going ahead to step 8:
When dividing 2891 by 666, we get 4 with a remainder of 227.
Use 4 as the next digit of our solution. 
Result so far: 60874.0
The remainder is 227 after subtracting 2664 from 2891.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2270, and continue the process.

Step 9:
2270 divided by 666 is 3 with a remainder of 272.
Write down 3 as next digit of the result. 
Result so far: 60874.3
Subtract 1998 from 2270 to get 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Let's proceed to step 10:
666 can be fit into 2720 4 times, resulting in a remainder of 56.
Write down 4 as next digit of the result. 
Result so far: 60874.34
Subtract 2664 from 2720 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 11:
560 divided by 666 is 0 with a remainder of 560.
The next digit of our result is 0. 
Result so far: 60874.34
Subtract 0 from 560 to get 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5600, and continue the process.

Let's proceed to step 12:
5600 divided by 666 is 8 with a remainder of 272.
Use 8 as the next digit of our solution. 
Result so far: 60874.3408
Deduct 5328 from 5600 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Let's proceed to step 13:
When dividing 2720 by 666, we get 4 with a remainder of 56.
The next digit of our result is 4. 
Result so far: 60874.34084
Subtract 2664 from 2720 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 14:
If we divide 560 by 666, we get 0 and a remainder of 560.
Write down 0 as next digit of the result. 
Result so far: 60874.34084
Subtract 0 from 560 to get 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5600, and continue the process.

Going ahead to step 15:
If we divide 5600 by 666, we get 8 and a remainder of 272.
Write down 8 as next digit of the result. 
Result so far: 60874.3408408
Deduct 5328 from 5600 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Let's proceed to step 16:
666 can be fit into 2720 4 times, resulting in a remainder of 56.
Use 4 as the next digit of our solution. 
Result so far: 60874.34084084
Subtracting 2664 from 2720 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Our division results in 60874.34084084 with a remaining 5.6e-08.