138331 divided by 45 
We want to figure out the number of times 138331 can be divided by 45.

Step 1:
The number 45 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 45

Step 2:
The number 45 fits into 13 0 times, leaving a remainder of 13.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 13 leaves us with 13.
Append the next digit (8) from the dividend to 13 and continue with: 138 / 45

Going ahead to step 3:
45 goes into 138 3 times with a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 135 from 138 and we're left with 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 45

On to step 4:
When dividing 33 by 45, we get 0 with a remainder of 33.
Write down 0 as next digit of the result. 
Result so far: 30.0
Subtracting 0 from 33 leaves us with 33.
Grab the next digit (3) from the dividend, add it to 33, then carry on: 333 / 45

Moving on to step 5:
45 can be fit into 333 7 times, resulting in a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 307.0
Deduct 315 from 333 and we're left with 18.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 45

Moving on to step 6:
45 goes into 181 4 times with a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 3074.0
Subtract 180 from 181 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
The number 45 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 3074.0
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
45 can be fit into 100 2 times, resulting in a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 3074.02
Deduct 90 from 100 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
45 goes into 100 2 times with a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 3074.022
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 3074.022 with a remaining 0.001.