582158 divided by 4 
We want to figure out the number of times 582158 can be divided by 4.

Going ahead to step 1:
4 goes into 5 1 times with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 1 after subtracting 4 from 5.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 4

Advancing to step 2:
4 can be fit into 18 4 times, resulting in a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 14.0
If we take 16 away from 18, we end up with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 4

On to step 3:
When dividing 22 by 4, we get 5 with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 145.0
If we take 20 away from 22, we end up with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 4

Advancing to step 4:
21 divided by 4 is 5 with a remainder of 1.
The next digit of our result is 5. 
Result so far: 1455.0
If we take 20 away from 21, we end up with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 4

Going ahead to step 5:
4 can be fit into 15 3 times, resulting in a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 14553.0
Deduct 12 from 15 and we're left with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 4

Step 6:
4 can be fit into 38 9 times, resulting in a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 145539.0
If we take 36 away from 38, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
If we divide 20 by 4, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 145539.5
If we subtract 20 from 20, 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.

Moving on to step 8:
4 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: 145539.5
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 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 145539.5
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.

The final result is 145539.5 with a remainder of 0.0.