247788 divided by 40 
Let's see how many times 40 fits into 247788.

Going ahead to step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 40

Let's proceed to step 2:
The number 40 fits into 24 0 times, leaving a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 24, we get 24.
Bring next digit (7) of the dividend behind the 24 and repeat the process: 247 / 40

Moving on to step 3:
The number 40 fits into 247 6 times, leaving a remainder of 7.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we subtract 240 from 247, we get 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 40

Step 4:
When dividing 77 by 40, we get 1 with a remainder of 37.
The next digit of our result is 1. 
Result so far: 61.0
Deduct 40 from 77 and we're left with 37.
Grab the next digit (8) from the dividend, add it to 37, then carry on: 378 / 40

Advancing to step 5:
The number 40 fits into 378 9 times, leaving a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 619.0
The remainder is 18 after subtracting 360 from 378.
Append the next digit (8) from the dividend to 18 and continue with: 188 / 40

On to step 6:
188 divided by 40 is 4 with a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 6194.0
Deduct 160 from 188 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 7:
40 can be fit into 280 7 times, resulting in a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 6194.7
If we take 280 away from 280, we end up 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 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 6194.7
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.

Let's proceed to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 6194.7
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.

The final outcome is 6194.7, with a leftover of 0.0.