We're dividing 901707 by 40 
We want to figure out the number of times 901707 can be divided by 40.

On to step 1:
If we divide 9 by 40, we get 0 and a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Fetch the next digit (0) from the dividend, attach it to 9 and continue: 90 / 40

On to step 2:
40 can be fit into 90 2 times, resulting in a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 80 from 90, we get 10.
Include the next digit (1) from the dividend after 10, then repeat: 101 / 40

Let's proceed to step 3:
The number 40 fits into 101 2 times, leaving a remainder of 21.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
The remainder is 21 after subtracting 80 from 101.
Grab the next digit (7) from the dividend, add it to 21, then carry on: 217 / 40

Let's proceed to step 4:
If we divide 217 by 40, we get 5 and a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 225.0
If we take 200 away from 217, we end up with 17.
Grab the next digit (0) from the dividend, add it to 17, then carry on: 170 / 40

Going ahead to step 5:
The number 40 fits into 170 4 times, leaving a remainder of 10.
The number 4 becomes the next digit in our result. 
Result so far: 2254.0
Deduct 160 from 170 and we're left with 10.
Include the next digit (7) from the dividend after 10, then repeat: 107 / 40

On to step 6:
40 goes into 107 2 times with a remainder of 27.
Put 2 as the next digit of the answer. 
Result so far: 22542.0
Subtracting 80 from 107 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
40 can be fit into 270 6 times, resulting in a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 22542.6
If we subtract 240 from 270, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 22542.67
If we subtract 280 from 300, 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.

Let's proceed to step 9:
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: 22542.675
If we subtract 200 from 200, 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.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22542.675
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.

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

In conclusion, the division gives 22542.675 with a balance of 0.0.