258989 divided by 40 
We want to divide 258989 by 40.

Step 1:
If we divide 2 by 40, we get 0 and a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Fetch the next digit (5) from the dividend, attach it to 2 and continue: 25 / 40

On to step 2:
25 divided by 40 is 0 with a remainder of 25.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 25, we get 25.
Fetch the next digit (8) from the dividend, attach it to 25 and continue: 258 / 40

Let's proceed to step 3:
40 goes into 258 6 times with a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 6.0
Subtract 240 from 258 to get 18.
Take the next digit (9) from the dividend and append it to 18, then repeat: 189 / 40

Let's proceed to step 4:
The number 40 fits into 189 4 times, leaving a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 64.0
If we take 160 away from 189, we end up with 29.
Bring next digit (8) of the dividend behind the 29 and repeat the process: 298 / 40

Let's proceed to step 5:
If we divide 298 by 40, we get 7 and a remainder of 18.
The number 7 becomes the next digit in our result. 
Result so far: 647.0
Deduct 280 from 298 and we're left with 18.
Bring next digit (9) of the dividend behind the 18 and repeat the process: 189 / 40

Going ahead to step 6:
189 divided by 40 is 4 with a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 6474.0
Subtract 160 from 189 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 7:
40 can be fit into 290 7 times, resulting in a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 6474.7
If we take 280 away from 290, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 8:
100 divided by 40 is 2 with a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 6474.72
Subtracting 80 from 100 leaves us 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.

Moving on to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 6474.725
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.

Step 10:
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: 6474.725
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.

On to step 11:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 6474.725
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.

The final result is 6474.725 with a remainder of 0.0.