40058681 ÷ 561 
We want to figure out the number of times 40058681 can be divided by 561.

Moving on to step 1:
The number 561 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 561

On to step 2:
561 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Bring next digit (0) of the dividend behind the 40 and repeat the process: 400 / 561

Advancing to step 3:
The number 561 fits into 400 0 times, leaving a remainder of 400.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 400 and we're left with 400.
Fetch the next digit (5) from the dividend, attach it to 400 and continue: 4005 / 561

Step 4:
561 goes into 4005 7 times with a remainder of 78.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
If we subtract 3927 from 4005, we get 78.
Fetch the next digit (8) from the dividend, attach it to 78 and continue: 788 / 561

Step 5:
When dividing 788 by 561, we get 1 with a remainder of 227.
Write down 1 as next digit of the result. 
Result so far: 71.0
If we take 561 away from 788, we end up with 227.
Grab the next digit (6) from the dividend, add it to 227, then carry on: 2276 / 561

Let's proceed to step 6:
561 can be fit into 2276 4 times, resulting in a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 714.0
If we subtract 2244 from 2276, we get 32.
Fetch the next digit (8) from the dividend, attach it to 32 and continue: 328 / 561

Advancing to step 7:
561 can be fit into 328 0 times, resulting in a remainder of 328.
Record the quotient 0 as the next digit in the result. 
Result so far: 7140.0
If we take 0 away from 328, we end up with 328.
Fetch the next digit (1) from the dividend, attach it to 328 and continue: 3281 / 561

Going ahead to step 8:
When dividing 3281 by 561, we get 5 with a remainder of 476.
Write down 5 as next digit of the result. 
Result so far: 71405.0
Subtract 2805 from 3281 to get 476.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

Going ahead to step 9:
When dividing 4760 by 561, we get 8 with a remainder of 272.
Write down 8 as next digit of the result. 
Result so far: 71405.8
Deduct 4488 from 4760 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.

Advancing to step 10:
561 can be fit into 2720 4 times, resulting in a remainder of 476.
Use 4 as the next digit of our solution. 
Result so far: 71405.84
If we take 2244 away from 2720, we end up with 476.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

Moving on to step 11:
561 goes into 4760 8 times with a remainder of 272.
Put 8 as the next digit of the answer. 
Result so far: 71405.848
The remainder is 272 after subtracting 4488 from 4760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Advancing to step 12:
561 goes into 2720 4 times with a remainder of 476.
Put 4 as the next digit of the answer. 
Result so far: 71405.8484
If we subtract 2244 from 2720, we get 476.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

Going ahead to step 13:
561 can be fit into 4760 8 times, resulting in a remainder of 272.
The next digit of our result is 8. 
Result so far: 71405.84848
The remainder is 272 after subtracting 4488 from 4760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Moving on to step 14:
561 can be fit into 2720 4 times, resulting in a remainder of 476.
The next digit of our result is 4. 
Result so far: 71405.848484
The remainder is 476 after subtracting 2244 from 2720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

Moving on to step 15:
If we divide 4760 by 561, we get 8 and a remainder of 272.
The next digit of our result is 8. 
Result so far: 71405.8484848
Deduct 4488 from 4760 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.

Going ahead to step 16:
The number 561 fits into 2720 4 times, leaving a remainder of 476.
Record the quotient 4 as the next digit in the result. 
Result so far: 71405.84848484
Subtracting 2244 from 2720 leaves us with 476.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

The final result is 71405.84848484 with a remainder of 4.76e-07.