40971 divided by 9 
Our goal is to divide 40971 by 9.

On to step 1:
The number 9 fits into 4 0 times, leaving 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 / 9

Going ahead to step 2:
9 can be fit into 40 4 times, resulting in a remainder of 4.
The next digit of our result is 4. 
Result so far: 4.0
Deduct 36 from 40 and we're left with 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 9

Moving on to step 3:
9 goes into 49 5 times with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 45.0
If we take 45 away from 49, we end up with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 9

Step 4:
47 divided by 9 is 5 with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 455.0
The remainder is 2 after subtracting 45 from 47.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 9

Let's proceed to step 5:
When dividing 21 by 9, we get 2 with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 4552.0
Deduct 18 from 21 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 6:
The number 9 fits into 30 3 times, leaving a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 4552.3
If we take 27 away from 30, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
If we divide 30 by 9, we get 3 and a remainder of 3.
The number 3 becomes the next digit in our result. 
Result so far: 4552.33
If we take 27 away from 30, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The quotient of the division is 4552.33, and the remainder is 0.003.