Let's divide 582587 by 38
Our goal is to divide 582587 by 38.

Going ahead to step 1:
When dividing 5 by 38, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 38

Moving on to step 2:
The number 38 fits into 58 1 times, leaving a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 38 from 58 and we're left with 20.
Include the next digit (2) from the dividend after 20, then repeat: 202 / 38

Moving on to step 3:
The number 38 fits into 202 5 times, leaving a remainder of 12.
The next digit of our result is 5. 
Result so far: 15.0
Subtract 190 from 202 to get 12.
Bring next digit (5) of the dividend behind the 12 and repeat the process: 125 / 38

Going ahead to step 4:
The number 38 fits into 125 3 times, leaving a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 153.0
Subtracting 114 from 125 leaves us with 11.
Take the next digit (8) from the dividend and append it to 11, then repeat: 118 / 38

On to step 5:
38 can be fit into 118 3 times, resulting in a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 1533.0
Subtract 114 from 118 to get 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 38

Going ahead to step 6:
The number 38 fits into 47 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 15331.0
If we subtract 38 from 47, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
38 can be fit into 90 2 times, resulting in a remainder of 14.
Use 2 as the next digit of our solution. 
Result so far: 15331.2
Subtract 76 from 90 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 8:
When dividing 140 by 38, we get 3 with a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 15331.23
Deduct 114 from 140 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 9:
When dividing 260 by 38, we get 6 with a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 15331.236
If we take 228 away from 260, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 10:
The number 38 fits into 320 8 times, leaving a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 15331.2368
Subtract 304 from 320 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 11:
The number 38 fits into 160 4 times, leaving a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 15331.23684
Deduct 152 from 160 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 12:
38 goes into 80 2 times with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 15331.236842
The remainder is 4 after subtracting 76 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 13:
The number 38 fits into 40 1 times, leaving a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 15331.2368421
Deduct 38 from 40 and we're left 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.

Step 14:
38 goes into 20 0 times with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 15331.2368421
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The quotient of the division is 15331.2368421, and the remainder is 2e-08.