Let's divide 40008345 by 965
Let's see how many times 965 fits into 40008345.

On to step 1:
4 divided by 965 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 965

On to step 2:
When dividing 40 by 965, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (0) from the dividend, add it to 40, then carry on: 400 / 965

Let's proceed to step 3:
When dividing 400 by 965, we get 0 with a remainder of 400.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 400 leaves us with 400.
Fetch the next digit (0) from the dividend, attach it to 400 and continue: 4000 / 965

On to step 4:
When dividing 4000 by 965, we get 4 with a remainder of 140.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 3860 from 4000 to get 140.
Append the next digit (8) from the dividend to 140 and continue with: 1408 / 965

On to step 5:
965 goes into 1408 1 times with a remainder of 443.
Write down 1 as next digit of the result. 
Result so far: 41.0
If we take 965 away from 1408, we end up with 443.
Append the next digit (3) from the dividend to 443 and continue with: 4433 / 965

Advancing to step 6:
965 goes into 4433 4 times with a remainder of 573.
Use 4 as the next digit of our solution. 
Result so far: 414.0
The remainder is 573 after subtracting 3860 from 4433.
Grab the next digit (4) from the dividend, add it to 573, then carry on: 5734 / 965

On to step 7:
965 goes into 5734 5 times with a remainder of 909.
Put 5 as the next digit of the answer. 
Result so far: 4145.0
Deduct 4825 from 5734 and we're left with 909.
Take the next digit (5) from the dividend and append it to 909, then repeat: 9095 / 965

Going ahead to step 8:
9095 divided by 965 is 9 with a remainder of 410.
Put 9 as the next digit of the answer. 
Result so far: 41459.0
Subtracting 8685 from 9095 leaves us with 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

On to step 9:
4100 divided by 965 is 4 with a remainder of 240.
Use 4 as the next digit of our solution. 
Result so far: 41459.4
Deduct 3860 from 4100 and we're left with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Let's proceed to step 10:
When dividing 2400 by 965, we get 2 with a remainder of 470.
Put 2 as the next digit of the answer. 
Result so far: 41459.42
The remainder is 470 after subtracting 1930 from 2400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4700, and continue the process.

Step 11:
965 goes into 4700 4 times with a remainder of 840.
Record the quotient 4 as the next digit in the result. 
Result so far: 41459.424
The remainder is 840 after subtracting 3860 from 4700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8400, and continue the process.

On to step 12:
When dividing 8400 by 965, we get 8 with a remainder of 680.
Write down 8 as next digit of the result. 
Result so far: 41459.4248
Subtracting 7720 from 8400 leaves us with 680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6800, and continue the process.

Let's proceed to step 13:
6800 divided by 965 is 7 with a remainder of 45.
Record the quotient 7 as the next digit in the result. 
Result so far: 41459.42487
Subtract 6755 from 6800 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Let's proceed to step 14:
When dividing 450 by 965, we get 0 with a remainder of 450.
Put 0 as the next digit of the answer. 
Result so far: 41459.42487
If we take 0 away from 450, we end up with 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4500, and continue the process.

Step 15:
965 can be fit into 4500 4 times, resulting in a remainder of 640.
Put 4 as the next digit of the answer. 
Result so far: 41459.4248704
Deduct 3860 from 4500 and we're left with 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6400, and continue the process.

On to step 16:
The number 965 fits into 6400 6 times, leaving a remainder of 610.
Write down 6 as next digit of the result. 
Result so far: 41459.42487046
Subtract 5790 from 6400 to get 610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6100, and continue the process.

The quotient of the division is 41459.42487046, and the remainder is 6.1e-07.