40065374 divided by 3 
Let's see how many times 3 fits into 40065374.

On to step 1:
3 can be fit into 4 1 times, resulting in a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 3 from 4 and we're left with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 3

Let's proceed to step 2:
3 can be fit into 10 3 times, resulting in a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Subtract 9 from 10 to get 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 3

Let's proceed to step 3:
The number 3 fits into 10 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 133.0
If we subtract 9 from 10, we get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 3

Moving on to step 4:
The number 3 fits into 16 5 times, leaving a remainder of 1.
The number 5 becomes the next digit in our result. 
Result so far: 1335.0
If we take 15 away from 16, we end up with 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 3

Step 5:
The number 3 fits into 15 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 13355.0
If we subtract 15 from 15, we get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 3

Advancing to step 6:
3 divided by 3 is 1 with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 133551.0
Subtract 3 from 3 to get 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 3

Step 7:
When dividing 7 by 3, we get 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 1335512.0
If we subtract 6 from 7, we get 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 3

Let's proceed to step 8:
3 can be fit into 14 4 times, resulting in a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 13355124.0
Deduct 12 from 14 and we're left 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.

Advancing to step 9:
If we divide 20 by 3, we get 6 and a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 13355124.6
Deduct 18 from 20 and we're left 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 10:
3 can be fit into 20 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 13355124.66
Deduct 18 from 20 and we're left 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.

The quotient of the division is 13355124.66, and the remainder is 0.002.