161771 ÷ 51 
We're looking to find how many times 51 goes into 161771.

Advancing to step 1:
1 divided by 51 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 51

Let's proceed to step 2:
16 divided by 51 is 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Grab the next digit (1) from the dividend, add it to 16, then carry on: 161 / 51

Moving on to step 3:
If we divide 161 by 51, we get 3 and a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 153 from 161 leaves us with 8.
Grab the next digit (7) from the dividend, add it to 8, then carry on: 87 / 51

Moving on to step 4:
The number 51 fits into 87 1 times, leaving a remainder of 36.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
Subtract 51 from 87 to get 36.
Bring next digit (7) of the dividend behind the 36 and repeat the process: 367 / 51

Advancing to step 5:
The number 51 fits into 367 7 times, leaving a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 317.0
If we subtract 357 from 367, we get 10.
Bring next digit (1) of the dividend behind the 10 and repeat the process: 101 / 51

Moving on to step 6:
The number 51 fits into 101 1 times, leaving a remainder of 50.
Put 1 as the next digit of the answer. 
Result so far: 3171.0
The remainder is 50 after subtracting 51 from 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Let's proceed to step 7:
51 can be fit into 500 9 times, resulting in a remainder of 41.
Put 9 as the next digit of the answer. 
Result so far: 3171.9
If we take 459 away from 500, we end up with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 8:
If we divide 410 by 51, we get 8 and a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 3171.98
Deduct 408 from 410 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 9:
If we divide 20 by 51, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 3171.98
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 10:
When dividing 200 by 51, we get 3 with a remainder of 47.
The next digit of our result is 3. 
Result so far: 3171.9803
If we subtract 153 from 200, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Advancing to step 11:
51 goes into 470 9 times with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 3171.98039
If we take 459 away from 470, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 12:
51 can be fit into 110 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 3171.980392
The remainder is 8 after subtracting 102 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
If we divide 80 by 51, we get 1 and a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 3171.9803921
Subtract 51 from 80 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 14:
If we divide 290 by 51, we get 5 and a remainder of 35.
Record the quotient 5 as the next digit in the result. 
Result so far: 3171.98039215
Subtracting 255 from 290 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

After the division, we end up with 3171.98039215 and a remainder of 3.5e-08.