We divide 157785 by 40
We want to figure out the number of times 157785 can be divided by 40.

On to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 40

On to step 2:
15 divided by 40 is 0 with a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Take the next digit (7) from the dividend and append it to 15, then repeat: 157 / 40

Let's proceed to step 3:
If we divide 157 by 40, we get 3 and a remainder of 37.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 37 after subtracting 120 from 157.
Fetch the next digit (7) from the dividend, attach it to 37 and continue: 377 / 40

Step 4:
If we divide 377 by 40, we get 9 and a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 39.0
The remainder is 17 after subtracting 360 from 377.
Include the next digit (8) from the dividend after 17, then repeat: 178 / 40

Moving on to step 5:
40 can be fit into 178 4 times, resulting in a remainder of 18.
The next digit of our result is 4. 
Result so far: 394.0
Subtracting 160 from 178 leaves us with 18.
Include the next digit (5) from the dividend after 18, then repeat: 185 / 40

Going ahead to step 6:
The number 40 fits into 185 4 times, leaving a remainder of 25.
The next digit of our result is 4. 
Result so far: 3944.0
Subtracting 160 from 185 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 7:
If we divide 250 by 40, we get 6 and a remainder of 10.
The next digit of our result is 6. 
Result so far: 3944.6
Subtracting 240 from 250 leaves us 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.

On to step 8:
100 divided by 40 is 2 with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 3944.62
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
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: 3944.625
If we take 200 away from 200, 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.

Moving on to step 10:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 3944.625
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.

On to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 3944.625
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 3944.625, and the remainder is 0.0.