We divide 170754 by 40
Our goal is to divide 170754 by 40.

Let's proceed to step 1:
40 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 40

Step 2:
40 goes into 17 0 times with a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 17 after subtracting 0 from 17.
Bring next digit (0) of the dividend behind the 17 and repeat the process: 170 / 40

Moving on to step 3:
40 goes into 170 4 times with a remainder of 10.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 10 after subtracting 160 from 170.
Take the next digit (7) from the dividend and append it to 10, then repeat: 107 / 40

Going ahead to step 4:
40 goes into 107 2 times with a remainder of 27.
The number 2 becomes the next digit in our result. 
Result so far: 42.0
Subtract 80 from 107 to get 27.
Grab the next digit (5) from the dividend, add it to 27, then carry on: 275 / 40

Step 5:
If we divide 275 by 40, we get 6 and a remainder of 35.
Put 6 as the next digit of the answer. 
Result so far: 426.0
Deduct 240 from 275 and we're left with 35.
Include the next digit (4) from the dividend after 35, then repeat: 354 / 40

Going ahead to step 6:
The number 40 fits into 354 8 times, leaving a remainder of 34.
Write down 8 as next digit of the result. 
Result so far: 4268.0
If we subtract 320 from 354, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 7:
When dividing 340 by 40, we get 8 with a remainder of 20.
Use 8 as the next digit of our solution. 
Result so far: 4268.8
If we subtract 320 from 340, 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.

Advancing to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 4268.85
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 4268.85
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.

Moving on to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 4268.85
Subtract 0 from 0 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.

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