We look at the division of 5157582 by 161 
Our goal is to divide 5157582 by 161.

Advancing to step 1:
161 can be fit into 5 0 times, resulting in 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.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 161

Moving on to step 2:
51 divided by 161 is 0 with a remainder of 51.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 51 to get 51.
Fetch the next digit (5) from the dividend, attach it to 51 and continue: 515 / 161

Going ahead to step 3:
When dividing 515 by 161, we get 3 with a remainder of 32.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 483 from 515 leaves us with 32.
Bring next digit (7) of the dividend behind the 32 and repeat the process: 327 / 161

Moving on to step 4:
When dividing 327 by 161, we get 2 with a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 32.0
The remainder is 5 after subtracting 322 from 327.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 161

Let's proceed to step 5:
161 goes into 55 0 times with a remainder of 55.
Record the quotient 0 as the next digit in the result. 
Result so far: 320.0
Deduct 0 from 55 and we're left with 55.
Append the next digit (8) from the dividend to 55 and continue with: 558 / 161

Advancing to step 6:
161 can be fit into 558 3 times, resulting in a remainder of 75.
The number 3 becomes the next digit in our result. 
Result so far: 3203.0
Deduct 483 from 558 and we're left with 75.
Fetch the next digit (2) from the dividend, attach it to 75 and continue: 752 / 161

Going ahead to step 7:
If we divide 752 by 161, we get 4 and a remainder of 108.
Write down 4 as next digit of the result. 
Result so far: 32034.0
If we subtract 644 from 752, we get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Going ahead to step 8:
1080 divided by 161 is 6 with a remainder of 114.
Record the quotient 6 as the next digit in the result. 
Result so far: 32034.6
Subtracting 966 from 1080 leaves us with 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

On to step 9:
161 can be fit into 1140 7 times, resulting in a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 32034.67
Deduct 1127 from 1140 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

On to step 10:
The number 161 fits into 130 0 times, leaving a remainder of 130.
Write down 0 as next digit of the result. 
Result so far: 32034.67
If we subtract 0 from 130, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Step 11:
If we divide 1300 by 161, we get 8 and a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 32034.6708
Subtracting 1288 from 1300 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 12:
When dividing 120 by 161, we get 0 with a remainder of 120.
The next digit of our result is 0. 
Result so far: 32034.6708
Deduct 0 from 120 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Let's proceed to step 13:
When dividing 1200 by 161, we get 7 with a remainder of 73.
Put 7 as the next digit of the answer. 
Result so far: 32034.670807
Subtract 1127 from 1200 to get 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Step 14:
161 can be fit into 730 4 times, resulting in a remainder of 86.
Write down 4 as next digit of the result. 
Result so far: 32034.6708074
If we take 644 away from 730, we end up with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Let's proceed to step 15:
The number 161 fits into 860 5 times, leaving a remainder of 55.
The next digit of our result is 5. 
Result so far: 32034.67080745
Subtracting 805 from 860 leaves us with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

The final result is 32034.67080745 with a remainder of 5.5e-08.