We look at the division of 258160 by 40 
Let's see how many times 40 fits into 258160.

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
Deduct 0 from 2 and we're left with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 40

Let's proceed to step 2:
25 divided by 40 is 0 with a remainder of 25.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 25, we get 25.
Take the next digit (8) from the dividend and append it to 25, then repeat: 258 / 40

Advancing to step 3:
40 can be fit into 258 6 times, resulting in a remainder of 18.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Subtracting 240 from 258 leaves us with 18.
Fetch the next digit (1) from the dividend, attach it to 18 and continue: 181 / 40

Moving on to step 4:
181 divided by 40 is 4 with a remainder of 21.
Use 4 as the next digit of our solution. 
Result so far: 64.0
If we take 160 away from 181, we end up with 21.
Take the next digit (6) from the dividend and append it to 21, then repeat: 216 / 40

Advancing to step 5:
40 goes into 216 5 times with a remainder of 16.
Write down 5 as next digit of the result. 
Result so far: 645.0
If we take 200 away from 216, we end up with 16.
Bring next digit (0) of the dividend behind the 16 and repeat the process: 160 / 40

Let's proceed to step 6:
160 divided by 40 is 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 6454.0
Deduct 160 from 160 and we're left 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 7:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 6454.0
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.

On to step 8:
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: 6454.0
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 final result is 6454.0 with a remainder of 0.0.