We're dividing 40789704 by 985 
We're looking to find how many times 985 goes into 40789704.

Step 1:
985 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 985

On to step 2:
When dividing 40 by 985, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 985

Advancing to step 3:
985 can be fit into 407 0 times, resulting in a remainder of 407.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 407 to get 407.
Bring next digit (8) of the dividend behind the 407 and repeat the process: 4078 / 985

Let's proceed to step 4:
985 goes into 4078 4 times with a remainder of 138.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 3940 from 4078, we get 138.
Include the next digit (9) from the dividend after 138, then repeat: 1389 / 985

Moving on to step 5:
The number 985 fits into 1389 1 times, leaving a remainder of 404.
The next digit of our result is 1. 
Result so far: 41.0
Subtract 985 from 1389 to get 404.
Bring next digit (7) of the dividend behind the 404 and repeat the process: 4047 / 985

Advancing to step 6:
The number 985 fits into 4047 4 times, leaving a remainder of 107.
Record the quotient 4 as the next digit in the result. 
Result so far: 414.0
Deduct 3940 from 4047 and we're left with 107.
Grab the next digit (0) from the dividend, add it to 107, then carry on: 1070 / 985

Step 7:
985 can be fit into 1070 1 times, resulting in a remainder of 85.
Put 1 as the next digit of the answer. 
Result so far: 4141.0
If we subtract 985 from 1070, we get 85.
Append the next digit (4) from the dividend to 85 and continue with: 854 / 985

Moving on to step 8:
If we divide 854 by 985, we get 0 and a remainder of 854.
Record the quotient 0 as the next digit in the result. 
Result so far: 41410.0
The remainder is 854 after subtracting 0 from 854.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8540, and continue the process.

Let's proceed to step 9:
985 goes into 8540 8 times with a remainder of 660.
The number 8 becomes the next digit in our result. 
Result so far: 41410.8
Subtracting 7880 from 8540 leaves us with 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6600, and continue the process.

Going ahead to step 10:
When dividing 6600 by 985, we get 6 with a remainder of 690.
Use 6 as the next digit of our solution. 
Result so far: 41410.86
If we take 5910 away from 6600, we end up with 690.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6900, and continue the process.

On to step 11:
6900 divided by 985 is 7 with a remainder of 5.
The number 7 becomes the next digit in our result. 
Result so far: 41410.867
The remainder is 5 after subtracting 6895 from 6900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 12:
When dividing 50 by 985, we get 0 with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 41410.867
Subtract 0 from 50 to get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Going ahead to step 13:
The number 985 fits into 500 0 times, leaving a remainder of 500.
Put 0 as the next digit of the answer. 
Result so far: 41410.867
If we subtract 0 from 500, we get 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

After the division, we end up with 41410.867 and a remainder of 0.0005.