We're dividing 97707986 by 165 
Let's see how many times 165 fits into 97707986.

On to step 1:
If we divide 9 by 165, we get 0 and a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Include the next digit (7) from the dividend after 9, then repeat: 97 / 165

On to step 2:
The number 165 fits into 97 0 times, leaving a remainder of 97.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 97, we get 97.
Append the next digit (7) from the dividend to 97 and continue with: 977 / 165

Going ahead to step 3:
165 goes into 977 5 times with a remainder of 152.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we subtract 825 from 977, we get 152.
Take the next digit (0) from the dividend and append it to 152, then repeat: 1520 / 165

Advancing to step 4:
1520 divided by 165 is 9 with a remainder of 35.
Use 9 as the next digit of our solution. 
Result so far: 59.0
If we subtract 1485 from 1520, we get 35.
Take the next digit (7) from the dividend and append it to 35, then repeat: 357 / 165

Going ahead to step 5:
If we divide 357 by 165, we get 2 and a remainder of 27.
Use 2 as the next digit of our solution. 
Result so far: 592.0
If we take 330 away from 357, we end up with 27.
Bring next digit (9) of the dividend behind the 27 and repeat the process: 279 / 165

Moving on to step 6:
165 can be fit into 279 1 times, resulting in a remainder of 114.
Record the quotient 1 as the next digit in the result. 
Result so far: 5921.0
Subtract 165 from 279 to get 114.
Grab the next digit (8) from the dividend, add it to 114, then carry on: 1148 / 165

Step 7:
165 goes into 1148 6 times with a remainder of 158.
The next digit of our result is 6. 
Result so far: 59216.0
Subtract 990 from 1148 to get 158.
Fetch the next digit (6) from the dividend, attach it to 158 and continue: 1586 / 165

Moving on to step 8:
165 goes into 1586 9 times with a remainder of 101.
The number 9 becomes the next digit in our result. 
Result so far: 592169.0
Deduct 1485 from 1586 and we're left with 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1010, and continue the process.

Step 9:
165 goes into 1010 6 times with a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 592169.6
If we take 990 away from 1010, we end up 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:
If we divide 200 by 165, we get 1 and a remainder of 35.
The next digit of our result is 1. 
Result so far: 592169.61
Subtracting 165 from 200 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.

Going ahead to step 11:
When dividing 350 by 165, we get 2 with a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 592169.612
If we take 330 away from 350, we end up 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 12:
200 divided by 165 is 1 with a remainder of 35.
Use 1 as the next digit of our solution. 
Result so far: 592169.6121
Subtracting 165 from 200 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.

Advancing to step 13:
The number 165 fits into 350 2 times, leaving a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 592169.61212
The remainder is 20 after subtracting 330 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 14:
165 goes into 200 1 times with a remainder of 35.
Record the quotient 1 as the next digit in the result. 
Result so far: 592169.612121
Deduct 165 from 200 and we're left 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.

Step 15:
165 can be fit into 350 2 times, resulting in a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 592169.6121212
Subtracting 330 from 350 leaves us 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.

Step 16:
The number 165 fits into 200 1 times, leaving a remainder of 35.
Use 1 as the next digit of our solution. 
Result so far: 592169.61212121
Subtracting 165 from 200 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.

The final outcome is 592169.61212121, with a leftover of 3.5e-08.