Let's divide 766688 by 40
Let's see how many times 40 fits into 766688.

Step 1:
If we divide 7 by 40, we get 0 and a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Include the next digit (6) from the dividend after 7, then repeat: 76 / 40

On to step 2:
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: 1.0
If we take 40 away from 76, we end up with 36.
Include the next digit (6) from the dividend after 36, then repeat: 366 / 40

Moving on to step 3:
366 divided by 40 is 9 with a remainder of 6.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
If we subtract 360 from 366, we get 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 40

Going ahead to step 4:
The number 40 fits into 66 1 times, leaving a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 191.0
The remainder is 26 after subtracting 40 from 66.
Grab the next digit (8) from the dividend, add it to 26, then carry on: 268 / 40

Step 5:
The number 40 fits into 268 6 times, leaving a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 1916.0
If we subtract 240 from 268, we get 28.
Fetch the next digit (8) from the dividend, attach it to 28 and continue: 288 / 40

Moving on to step 6:
The number 40 fits into 288 7 times, leaving a remainder of 8.
The number 7 becomes the next digit in our result. 
Result so far: 19167.0
If we take 280 away from 288, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 7:
40 can be fit into 80 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 19167.2
If we take 80 away from 80, 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.

Advancing to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19167.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.

Step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19167.2
Subtracting 0 from 0 leaves us 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.

Our division results in 19167.2 with a remaining 0.0.