We look at the division of 597161 by 3 
We're looking to find how many times 3 goes into 597161.

Advancing to step 1:
5 divided by 3 is 1 with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 2 after subtracting 3 from 5.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 3

Moving on to step 2:
3 can be fit into 29 9 times, resulting in a remainder of 2.
The next digit of our result is 9. 
Result so far: 19.0
Deduct 27 from 29 and we're left with 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 3

Advancing to step 3:
If we divide 27 by 3, we get 9 and a remainder of 0.
The next digit of our result is 9. 
Result so far: 199.0
Deduct 27 from 27 and we're left with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 3

Advancing to step 4:
3 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 1990.0
If we take 0 away from 1, we end up with 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 3

Step 5:
3 goes into 16 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 19905.0
Subtracting 15 from 16 leaves us with 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 3

Going ahead to step 6:
3 can be fit into 11 3 times, resulting in a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 199053.0
Subtracting 9 from 11 leaves us 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.

Going ahead to step 7:
If we divide 20 by 3, we get 6 and a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 199053.6
Subtract 18 from 20 to get 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 8:
3 can be fit into 20 6 times, resulting in a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 199053.66
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 199053.66, and the remainder is 0.002.