We look at the division of 79143595 by 40 
We want to divide 79143595 by 40.

On to step 1:
40 goes into 7 0 times with a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 40

On to step 2:
40 goes into 79 1 times with a remainder of 39.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 40 from 79 and we're left with 39.
Grab the next digit (1) from the dividend, add it to 39, then carry on: 391 / 40

On to step 3:
When dividing 391 by 40, we get 9 with a remainder of 31.
The next digit of our result is 9. 
Result so far: 19.0
Deduct 360 from 391 and we're left with 31.
Grab the next digit (4) from the dividend, add it to 31, then carry on: 314 / 40

On to step 4:
314 divided by 40 is 7 with a remainder of 34.
Record the quotient 7 as the next digit in the result. 
Result so far: 197.0
The remainder is 34 after subtracting 280 from 314.
Fetch the next digit (3) from the dividend, attach it to 34 and continue: 343 / 40

On to step 5:
The number 40 fits into 343 8 times, leaving a remainder of 23.
Use 8 as the next digit of our solution. 
Result so far: 1978.0
Subtracting 320 from 343 leaves us with 23.
Bring next digit (5) of the dividend behind the 23 and repeat the process: 235 / 40

On to step 6:
40 goes into 235 5 times with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 19785.0
The remainder is 35 after subtracting 200 from 235.
Grab the next digit (9) from the dividend, add it to 35, then carry on: 359 / 40

Step 7:
When dividing 359 by 40, we get 8 with a remainder of 39.
Write down 8 as next digit of the result. 
Result so far: 197858.0
If we take 320 away from 359, we end up with 39.
Take the next digit (5) from the dividend and append it to 39, then repeat: 395 / 40

On to step 8:
40 goes into 395 9 times with a remainder of 35.
Use 9 as the next digit of our solution. 
Result so far: 1978589.0
The remainder is 35 after subtracting 360 from 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 9:
350 divided by 40 is 8 with a remainder of 30.
Put 8 as the next digit of the answer. 
Result so far: 1978589.8
The remainder is 30 after subtracting 320 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
If we divide 300 by 40, we get 7 and a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 1978589.87
If we take 280 away from 300, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 11:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 1978589.875
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 12:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1978589.875
If we subtract 0 from 0, 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.

Advancing to step 13:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 1978589.875
The remainder is 0 after subtracting 0 from 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 1978589.875, and the remainder is 0.0.