We divide 40041 by 7
Our goal is to divide 40041 by 7.

Advancing to step 1:
7 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
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 / 7

Step 2:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtract 35 from 40 to get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 7

On to step 3:
When dividing 50 by 7, we get 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 57.0
The remainder is 1 after subtracting 49 from 50.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 7

Step 4:
When dividing 14 by 7, we get 2 with a remainder of 0.
The next digit of our result is 2. 
Result so far: 572.0
Deduct 14 from 14 and we're left with 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 7

On to step 5:
7 goes into 1 0 times with a remainder of 1.
The next digit of our result is 0. 
Result so far: 5720.0
The remainder is 1 after subtracting 0 from 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 6:
7 goes into 10 1 times with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 5720.1
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
When dividing 30 by 7, we get 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 5720.14
If we take 28 away from 30, we end up 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.

Moving on to step 8:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 5720.142
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 9:
7 goes into 60 8 times with a remainder of 4.
The next digit of our result is 8. 
Result so far: 5720.1428
Subtracting 56 from 60 leaves us 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 10:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 5720.14285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 11:
7 goes into 50 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 5720.142857
Deduct 49 from 50 and we're left 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.

Step 12:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 5720.1428571
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 13:
30 divided by 7 is 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 5720.14285714
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 5720.14285714 with a remainder of 2e-09.