We divide 40489 by 6
We want to figure out the number of times 40489 can be divided by 6.

Let's proceed to step 1:
When dividing 4 by 6, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 6

Let's proceed to step 2:
6 can be fit into 40 6 times, resulting in a remainder of 4.
The next digit of our result is 6. 
Result so far: 6.0
Deduct 36 from 40 and we're left with 4.
Append the next digit (4) from the dividend to 4 and continue with: 44 / 6

On to step 3:
6 goes into 44 7 times with a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 67.0
Subtract 42 from 44 to get 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 6

On to step 4:
28 divided by 6 is 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 674.0
If we take 24 away from 28, we end up with 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 6

Let's proceed to step 5:
6 can be fit into 49 8 times, resulting in a remainder of 1.
The next digit of our result is 8. 
Result so far: 6748.0
The remainder is 1 after subtracting 48 from 49.
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:
10 divided by 6 is 1 with a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 6748.1
If we take 6 away from 10, we end up 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.

Step 7:
When dividing 40 by 6, we get 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 6748.16
If we subtract 36 from 40, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
6 can be fit into 40 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 6748.166
Deduct 36 from 40 and we're left 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.

The quotient of the division is 6748.166, and the remainder is 0.0004.