335791 ÷ 87 
Let's see how many times 87 fits into 335791.

On to step 1:
87 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 87

On to step 2:
87 can be fit into 33 0 times, resulting in a remainder of 33.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 33 leaves us with 33.
Include the next digit (5) from the dividend after 33, then repeat: 335 / 87

Moving on to step 3:
If we divide 335 by 87, we get 3 and a remainder of 74.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 261 from 335 and we're left with 74.
Take the next digit (7) from the dividend and append it to 74, then repeat: 747 / 87

Going ahead to step 4:
87 can be fit into 747 8 times, resulting in a remainder of 51.
Put 8 as the next digit of the answer. 
Result so far: 38.0
Subtract 696 from 747 to get 51.
Grab the next digit (9) from the dividend, add it to 51, then carry on: 519 / 87

On to step 5:
519 divided by 87 is 5 with a remainder of 84.
Record the quotient 5 as the next digit in the result. 
Result so far: 385.0
Subtracting 435 from 519 leaves us with 84.
Append the next digit (1) from the dividend to 84 and continue with: 841 / 87

Let's proceed to step 6:
87 goes into 841 9 times with a remainder of 58.
The number 9 becomes the next digit in our result. 
Result so far: 3859.0
Subtracting 783 from 841 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 7:
580 divided by 87 is 6 with a remainder of 58.
Put 6 as the next digit of the answer. 
Result so far: 3859.6
The remainder is 58 after subtracting 522 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Step 8:
580 divided by 87 is 6 with a remainder of 58.
Write down 6 as next digit of the result. 
Result so far: 3859.66
Subtracting 522 from 580 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

The final result is 3859.66 with a remainder of 0.058.