5878 divided by 39 
Let's see how many times 39 fits into 5878.

Advancing to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 39

Step 2:
When dividing 58 by 39, we get 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 19 after subtracting 39 from 58.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 39

Advancing to step 3:
The number 39 fits into 197 5 times, leaving a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
If we subtract 195 from 197, we get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 39

Moving on to step 4:
28 divided by 39 is 0 with a remainder of 28.
The number 0 becomes the next digit in our result. 
Result so far: 150.0
The remainder is 28 after subtracting 0 from 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 5:
When dividing 280 by 39, we get 7 with a remainder of 7.
The number 7 becomes the next digit in our result. 
Result so far: 150.7
Subtracting 273 from 280 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 6:
The number 39 fits into 70 1 times, leaving a remainder of 31.
Use 1 as the next digit of our solution. 
Result so far: 150.71
Subtracting 39 from 70 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 7:
The number 39 fits into 310 7 times, leaving a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 150.717
Subtract 273 from 310 to get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 8:
If we divide 370 by 39, we get 9 and a remainder of 19.
Use 9 as the next digit of our solution. 
Result so far: 150.7179
The remainder is 19 after subtracting 351 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 9:
39 can be fit into 190 4 times, resulting in a remainder of 34.
The next digit of our result is 4. 
Result so far: 150.71794
Subtract 156 from 190 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 10:
The number 39 fits into 340 8 times, leaving a remainder of 28.
Use 8 as the next digit of our solution. 
Result so far: 150.717948
If we subtract 312 from 340, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 11:
The number 39 fits into 280 7 times, leaving a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 150.7179487
Deduct 273 from 280 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 12:
The number 39 fits into 70 1 times, leaving a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 150.71794871
Subtracting 39 from 70 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

The quotient of the division is 150.71794871, and the remainder is 3.1e-08.