Let's divide 122674 by 31
Our goal is to divide 122674 by 31.

Advancing to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 31

Going ahead to step 2:
If we divide 12 by 31, we get 0 and a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Include the next digit (2) from the dividend after 12, then repeat: 122 / 31

On to step 3:
122 divided by 31 is 3 with a remainder of 29.
The next digit of our result is 3. 
Result so far: 3.0
If we take 93 away from 122, we end up with 29.
Grab the next digit (6) from the dividend, add it to 29, then carry on: 296 / 31

Moving on to step 4:
The number 31 fits into 296 9 times, leaving a remainder of 17.
The next digit of our result is 9. 
Result so far: 39.0
Subtract 279 from 296 to get 17.
Append the next digit (7) from the dividend to 17 and continue with: 177 / 31

Going ahead to step 5:
The number 31 fits into 177 5 times, leaving a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 395.0
The remainder is 22 after subtracting 155 from 177.
Append the next digit (4) from the dividend to 22 and continue with: 224 / 31

Advancing to step 6:
31 goes into 224 7 times with a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 3957.0
The remainder is 7 after subtracting 217 from 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
When dividing 70 by 31, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 3957.2
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
When dividing 80 by 31, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 3957.22
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 3957.22 with a remaining 0.018.