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

On to step 1:
If we divide 1 by 40, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 40

Step 2:
19 divided by 40 is 0 with a remainder of 19.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 19 and we're left with 19.
Grab the next digit (8) from the dividend, add it to 19, then carry on: 198 / 40

Moving on to step 3:
When dividing 198 by 40, we get 4 with a remainder of 38.
The next digit of our result is 4. 
Result so far: 4.0
The remainder is 38 after subtracting 160 from 198.
Fetch the next digit (5) from the dividend, attach it to 38 and continue: 385 / 40

Let's proceed to step 4:
385 divided by 40 is 9 with a remainder of 25.
Put 9 as the next digit of the answer. 
Result so far: 49.0
If we subtract 360 from 385, we get 25.
Bring next digit (8) of the dividend behind the 25 and repeat the process: 258 / 40

Step 5:
If we divide 258 by 40, we get 6 and a remainder of 18.
The next digit of our result is 6. 
Result so far: 496.0
Subtracting 240 from 258 leaves us with 18.
Take the next digit (6) from the dividend and append it to 18, then repeat: 186 / 40

Step 6:
40 can be fit into 186 4 times, resulting in a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 4964.0
Deduct 160 from 186 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
The number 40 fits into 260 6 times, leaving a remainder of 20.
The next digit of our result is 6. 
Result so far: 4964.6
The remainder is 20 after subtracting 240 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving 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: 4964.65
Subtract 200 from 200 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.

Moving on to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 4964.65
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.

Advancing to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 4964.65
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.

After the division, we end up with 4964.65 and a remainder of 0.0.