We look at the division of 97164477 by 509 
We want to divide 97164477 by 509.

Moving on to step 1:
When dividing 9 by 509, we get 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 509

Let's proceed to step 2:
97 divided by 509 is 0 with a remainder of 97.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 97 after subtracting 0 from 97.
Include the next digit (1) from the dividend after 97, then repeat: 971 / 509

On to step 3:
When dividing 971 by 509, we get 1 with a remainder of 462.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 509 from 971 to get 462.
Fetch the next digit (6) from the dividend, attach it to 462 and continue: 4626 / 509

On to step 4:
The number 509 fits into 4626 9 times, leaving a remainder of 45.
Put 9 as the next digit of the answer. 
Result so far: 19.0
Subtract 4581 from 4626 to get 45.
Take the next digit (4) from the dividend and append it to 45, then repeat: 454 / 509

Moving on to step 5:
509 goes into 454 0 times with a remainder of 454.
The next digit of our result is 0. 
Result so far: 190.0
The remainder is 454 after subtracting 0 from 454.
Append the next digit (4) from the dividend to 454 and continue with: 4544 / 509

Moving on to step 6:
4544 divided by 509 is 8 with a remainder of 472.
Record the quotient 8 as the next digit in the result. 
Result so far: 1908.0
Deduct 4072 from 4544 and we're left with 472.
Fetch the next digit (7) from the dividend, attach it to 472 and continue: 4727 / 509

Advancing to step 7:
509 can be fit into 4727 9 times, resulting in a remainder of 146.
Record the quotient 9 as the next digit in the result. 
Result so far: 19089.0
If we take 4581 away from 4727, we end up with 146.
Bring next digit (7) of the dividend behind the 146 and repeat the process: 1467 / 509

Advancing to step 8:
1467 divided by 509 is 2 with a remainder of 449.
Write down 2 as next digit of the result. 
Result so far: 190892.0
If we subtract 1018 from 1467, we get 449.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4490, and continue the process.

Going ahead to step 9:
The number 509 fits into 4490 8 times, leaving a remainder of 418.
Put 8 as the next digit of the answer. 
Result so far: 190892.8
The remainder is 418 after subtracting 4072 from 4490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4180, and continue the process.

Let's proceed to step 10:
4180 divided by 509 is 8 with a remainder of 108.
Use 8 as the next digit of our solution. 
Result so far: 190892.88
Subtract 4072 from 4180 to 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.

After the division, we end up with 190892.88 and a remainder of 0.108.