677170 divided by 40 
We're looking to find how many times 40 goes into 677170.

Let's proceed to step 1:
40 can be fit into 6 0 times, resulting in a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 40

Advancing to step 2:
40 can be fit into 67 1 times, resulting in a remainder of 27.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 27 after subtracting 40 from 67.
Grab the next digit (7) from the dividend, add it to 27, then carry on: 277 / 40

Advancing to step 3:
277 divided by 40 is 6 with a remainder of 37.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Deduct 240 from 277 and we're left with 37.
Take the next digit (1) from the dividend and append it to 37, then repeat: 371 / 40

Advancing to step 4:
The number 40 fits into 371 9 times, leaving a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 169.0
The remainder is 11 after subtracting 360 from 371.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 40

On to step 5:
The number 40 fits into 117 2 times, leaving a remainder of 37.
Write down 2 as next digit of the result. 
Result so far: 1692.0
Deduct 80 from 117 and we're left with 37.
Bring next digit (0) of the dividend behind the 37 and repeat the process: 370 / 40

Going ahead to step 6:
When dividing 370 by 40, we get 9 with a remainder of 10.
The next digit of our result is 9. 
Result so far: 16929.0
If we take 360 away from 370, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 7:
40 can be fit into 100 2 times, resulting in a remainder of 20.
The next digit of our result is 2. 
Result so far: 16929.2
If we subtract 80 from 100, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 16929.25
Subtract 200 from 200 to 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.

Step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 16929.25
If we subtract 0 from 0, 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.

On to step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16929.25
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.

The final outcome is 16929.25, with a leftover of 0.0.