We divide 40289713 by 989
We want to figure out the number of times 40289713 can be divided by 989.

Advancing to step 1:
When dividing 4 by 989, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 989

On to step 2:
989 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (2) from the dividend and append it to 40, then repeat: 402 / 989

Step 3:
When dividing 402 by 989, we get 0 with a remainder of 402.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 402 and we're left with 402.
Take the next digit (8) from the dividend and append it to 402, then repeat: 4028 / 989

Step 4:
989 can be fit into 4028 4 times, resulting in a remainder of 72.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 3956 from 4028 to get 72.
Bring next digit (9) of the dividend behind the 72 and repeat the process: 729 / 989

On to step 5:
The number 989 fits into 729 0 times, leaving a remainder of 729.
Use 0 as the next digit of our solution. 
Result so far: 40.0
The remainder is 729 after subtracting 0 from 729.
Fetch the next digit (7) from the dividend, attach it to 729 and continue: 7297 / 989

Let's proceed to step 6:
989 goes into 7297 7 times with a remainder of 374.
Put 7 as the next digit of the answer. 
Result so far: 407.0
If we subtract 6923 from 7297, we get 374.
Grab the next digit (1) from the dividend, add it to 374, then carry on: 3741 / 989

Going ahead to step 7:
989 goes into 3741 3 times with a remainder of 774.
Use 3 as the next digit of our solution. 
Result so far: 4073.0
The remainder is 774 after subtracting 2967 from 3741.
Take the next digit (3) from the dividend and append it to 774, then repeat: 7743 / 989

Moving on to step 8:
The number 989 fits into 7743 7 times, leaving a remainder of 820.
Put 7 as the next digit of the answer. 
Result so far: 40737.0
Subtracting 6923 from 7743 leaves us with 820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8200, and continue the process.

On to step 9:
8200 divided by 989 is 8 with a remainder of 288.
Put 8 as the next digit of the answer. 
Result so far: 40737.8
Subtract 7912 from 8200 to get 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

Advancing to step 10:
When dividing 2880 by 989, we get 2 with a remainder of 902.
Put 2 as the next digit of the answer. 
Result so far: 40737.82
Subtracting 1978 from 2880 leaves us with 902.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9020, and continue the process.

Let's proceed to step 11:
989 goes into 9020 9 times with a remainder of 119.
The next digit of our result is 9. 
Result so far: 40737.829
Subtract 8901 from 9020 to get 119.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

Advancing to step 12:
989 goes into 1190 1 times with a remainder of 201.
Record the quotient 1 as the next digit in the result. 
Result so far: 40737.8291
The remainder is 201 after subtracting 989 from 1190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2010, and continue the process.

On to step 13:
The number 989 fits into 2010 2 times, leaving a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 40737.82912
Deduct 1978 from 2010 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 14:
The number 989 fits into 320 0 times, leaving a remainder of 320.
The number 0 becomes the next digit in our result. 
Result so far: 40737.82912
Subtract 0 from 320 to get 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

On to step 15:
989 goes into 3200 3 times with a remainder of 233.
The next digit of our result is 3. 
Result so far: 40737.8291203
Subtract 2967 from 3200 to get 233.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2330, and continue the process.

Moving on to step 16:
When dividing 2330 by 989, we get 2 with a remainder of 352.
The number 2 becomes the next digit in our result. 
Result so far: 40737.82912032
If we subtract 1978 from 2330, we get 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

The final outcome is 40737.82912032, with a leftover of 3.52e-07.