164731 divided by 45 
We're looking to find how many times 45 goes into 164731.

On to step 1:
When dividing 1 by 45, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 45

Advancing to step 2:
The number 45 fits into 16 0 times, leaving a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Take the next digit (4) from the dividend and append it to 16, then repeat: 164 / 45

Step 3:
When dividing 164 by 45, we get 3 with a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 135 from 164, we get 29.
Fetch the next digit (7) from the dividend, attach it to 29 and continue: 297 / 45

Advancing to step 4:
When dividing 297 by 45, we get 6 with a remainder of 27.
The number 6 becomes the next digit in our result. 
Result so far: 36.0
If we subtract 270 from 297, we get 27.
Include the next digit (3) from the dividend after 27, then repeat: 273 / 45

Step 5:
If we divide 273 by 45, we get 6 and a remainder of 3.
Record the quotient 6 as the next digit in the result. 
Result so far: 366.0
If we subtract 270 from 273, we get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 45

Going ahead to step 6:
The number 45 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 3660.0
Deduct 0 from 31 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Advancing to step 7:
If we divide 310 by 45, we get 6 and a remainder of 40.
The next digit of our result is 6. 
Result so far: 3660.6
Deduct 270 from 310 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 8:
The number 45 fits into 400 8 times, leaving a remainder of 40.
The number 8 becomes the next digit in our result. 
Result so far: 3660.68
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 9:
45 goes into 400 8 times with a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 3660.688
If we take 360 away from 400, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

In conclusion, the division gives 3660.688 with a balance of 0.004.