We're dividing 5841165 by 998 
We want to figure out the number of times 5841165 can be divided by 998.

On to step 1:
If we divide 5 by 998, we get 0 and 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.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 998

Advancing to step 2:
58 divided by 998 is 0 with a remainder of 58.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 58, we end up with 58.
Append the next digit (4) from the dividend to 58 and continue with: 584 / 998

Let's proceed to step 3:
When dividing 584 by 998, we get 0 with a remainder of 584.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 584 leaves us with 584.
Bring next digit (1) of the dividend behind the 584 and repeat the process: 5841 / 998

Step 4:
998 goes into 5841 5 times with a remainder of 851.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 4990 away from 5841, we end up with 851.
Bring next digit (1) of the dividend behind the 851 and repeat the process: 8511 / 998

Advancing to step 5:
998 can be fit into 8511 8 times, resulting in a remainder of 527.
Use 8 as the next digit of our solution. 
Result so far: 58.0
Deduct 7984 from 8511 and we're left with 527.
Append the next digit (6) from the dividend to 527 and continue with: 5276 / 998

Step 6:
The number 998 fits into 5276 5 times, leaving a remainder of 286.
Put 5 as the next digit of the answer. 
Result so far: 585.0
Deduct 4990 from 5276 and we're left with 286.
Fetch the next digit (5) from the dividend, attach it to 286 and continue: 2865 / 998

Advancing to step 7:
998 goes into 2865 2 times with a remainder of 869.
Use 2 as the next digit of our solution. 
Result so far: 5852.0
The remainder is 869 after subtracting 1996 from 2865.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8690, and continue the process.

On to step 8:
When dividing 8690 by 998, we get 8 with a remainder of 706.
Use 8 as the next digit of our solution. 
Result so far: 5852.8
Subtracting 7984 from 8690 leaves us with 706.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7060, and continue the process.

Step 9:
7060 divided by 998 is 7 with a remainder of 74.
The number 7 becomes the next digit in our result. 
Result so far: 5852.87
If we take 6986 away from 7060, we end up with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Moving on to step 10:
998 goes into 740 0 times with a remainder of 740.
Use 0 as the next digit of our solution. 
Result so far: 5852.87
If we subtract 0 from 740, we get 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7400, and continue the process.

Going ahead to step 11:
If we divide 7400 by 998, we get 7 and a remainder of 414.
Record the quotient 7 as the next digit in the result. 
Result so far: 5852.8707
Deduct 6986 from 7400 and we're left with 414.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4140, and continue the process.

Going ahead to step 12:
When dividing 4140 by 998, we get 4 with a remainder of 148.
Use 4 as the next digit of our solution. 
Result so far: 5852.87074
If we subtract 3992 from 4140, we get 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Moving on to step 13:
If we divide 1480 by 998, we get 1 and a remainder of 482.
Record the quotient 1 as the next digit in the result. 
Result so far: 5852.870741
Subtract 998 from 1480 to get 482.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4820, and continue the process.

Advancing to step 14:
When dividing 4820 by 998, we get 4 with a remainder of 828.
Record the quotient 4 as the next digit in the result. 
Result so far: 5852.8707414
If we subtract 3992 from 4820, we get 828.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8280, and continue the process.

Going ahead to step 15:
If we divide 8280 by 998, we get 8 and a remainder of 296.
The number 8 becomes the next digit in our result. 
Result so far: 5852.87074148
The remainder is 296 after subtracting 7984 from 8280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

In conclusion, the division gives 5852.87074148 with a balance of 2.96e-07.