We divide 595166 by 40
We want to divide 595166 by 40.

Advancing to step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 40

Let's proceed to step 2:
The number 40 fits into 59 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 19 after subtracting 40 from 59.
Fetch the next digit (5) from the dividend, attach it to 19 and continue: 195 / 40

Let's proceed to step 3:
40 goes into 195 4 times with a remainder of 35.
Write down 4 as next digit of the result. 
Result so far: 14.0
Subtract 160 from 195 to get 35.
Bring next digit (1) of the dividend behind the 35 and repeat the process: 351 / 40

Let's proceed to step 4:
40 can be fit into 351 8 times, resulting in a remainder of 31.
Record the quotient 8 as the next digit in the result. 
Result so far: 148.0
Deduct 320 from 351 and we're left with 31.
Include the next digit (6) from the dividend after 31, then repeat: 316 / 40

Moving on to step 5:
If we divide 316 by 40, we get 7 and a remainder of 36.
Put 7 as the next digit of the answer. 
Result so far: 1487.0
If we subtract 280 from 316, we get 36.
Bring next digit (6) of the dividend behind the 36 and repeat the process: 366 / 40

Moving on to step 6:
If we divide 366 by 40, we get 9 and a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 14879.0
If we subtract 360 from 366, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
40 can be fit into 60 1 times, resulting in a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 14879.1
If we subtract 40 from 60, we get 20.
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 8:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14879.15
If we subtract 200 from 200, 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.

Let's proceed to step 9:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 14879.15
Subtracting 0 from 0 leaves us 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.

Step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14879.15
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 14879.15, and the remainder is 0.0.