Let's divide 40538212 by 566
We want to divide 40538212 by 566.

Step 1:
566 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 566

Going ahead to step 2:
The number 566 fits into 40 0 times, leaving a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Bring next digit (5) of the dividend behind the 40 and repeat the process: 405 / 566

On to step 3:
When dividing 405 by 566, we get 0 with a remainder of 405.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 405, we get 405.
Include the next digit (3) from the dividend after 405, then repeat: 4053 / 566

Going ahead to step 4:
566 can be fit into 4053 7 times, resulting in a remainder of 91.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
The remainder is 91 after subtracting 3962 from 4053.
Fetch the next digit (8) from the dividend, attach it to 91 and continue: 918 / 566

Going ahead to step 5:
When dividing 918 by 566, we get 1 with a remainder of 352.
Put 1 as the next digit of the answer. 
Result so far: 71.0
If we take 566 away from 918, we end up with 352.
Take the next digit (2) from the dividend and append it to 352, then repeat: 3522 / 566

Advancing to step 6:
3522 divided by 566 is 6 with a remainder of 126.
Write down 6 as next digit of the result. 
Result so far: 716.0
Subtracting 3396 from 3522 leaves us with 126.
Include the next digit (1) from the dividend after 126, then repeat: 1261 / 566

Advancing to step 7:
566 can be fit into 1261 2 times, resulting in a remainder of 129.
Write down 2 as next digit of the result. 
Result so far: 7162.0
Deduct 1132 from 1261 and we're left with 129.
Append the next digit (2) from the dividend to 129 and continue with: 1292 / 566

Let's proceed to step 8:
The number 566 fits into 1292 2 times, leaving a remainder of 160.
Put 2 as the next digit of the answer. 
Result so far: 71622.0
The remainder is 160 after subtracting 1132 from 1292.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Let's proceed to step 9:
566 can be fit into 1600 2 times, resulting in a remainder of 468.
Write down 2 as next digit of the result. 
Result so far: 71622.2
If we take 1132 away from 1600, we end up with 468.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4680, and continue the process.

Moving on to step 10:
When dividing 4680 by 566, we get 8 with a remainder of 152.
Put 8 as the next digit of the answer. 
Result so far: 71622.28
The remainder is 152 after subtracting 4528 from 4680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1520, and continue the process.

Let's proceed to step 11:
566 can be fit into 1520 2 times, resulting in a remainder of 388.
Use 2 as the next digit of our solution. 
Result so far: 71622.282
Subtracting 1132 from 1520 leaves us with 388.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3880, and continue the process.

Advancing to step 12:
When dividing 3880 by 566, we get 6 with a remainder of 484.
Put 6 as the next digit of the answer. 
Result so far: 71622.2826
The remainder is 484 after subtracting 3396 from 3880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4840, and continue the process.

Going ahead to step 13:
The number 566 fits into 4840 8 times, leaving a remainder of 312.
Use 8 as the next digit of our solution. 
Result so far: 71622.28268
If we subtract 4528 from 4840, we get 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

On to step 14:
The number 566 fits into 3120 5 times, leaving a remainder of 290.
Write down 5 as next digit of the result. 
Result so far: 71622.282685
The remainder is 290 after subtracting 2830 from 3120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2900, and continue the process.

Advancing to step 15:
The number 566 fits into 2900 5 times, leaving a remainder of 70.
Use 5 as the next digit of our solution. 
Result so far: 71622.2826855
If we subtract 2830 from 2900, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

The quotient of the division is 71622.2826855, and the remainder is 7e-07.