Let's divide 412768 by 40
We're looking to find how many times 40 goes into 412768.

On to step 1:
40 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 40

Moving on to step 2:
40 goes into 41 1 times with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 40 away from 41, we end up with 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 40

On to step 3:
12 divided by 40 is 0 with a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we subtract 0 from 12, we get 12.
Append the next digit (7) from the dividend to 12 and continue with: 127 / 40

Step 4:
The number 40 fits into 127 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 103.0
Subtract 120 from 127 to get 7.
Append the next digit (6) from the dividend to 7 and continue with: 76 / 40

Let's proceed to step 5:
The number 40 fits into 76 1 times, leaving a remainder of 36.
Write down 1 as next digit of the result. 
Result so far: 1031.0
Subtract 40 from 76 to get 36.
Grab the next digit (8) from the dividend, add it to 36, then carry on: 368 / 40

Going ahead to step 6:
40 can be fit into 368 9 times, resulting in a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 10319.0
Subtract 360 from 368 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
40 goes into 80 2 times with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 10319.2
If we subtract 80 from 80, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 10319.2
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

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

The quotient of the division is 10319.2, and the remainder is 0.0.