We divide 547157 by 31
Our goal is to divide 547157 by 31.

Step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 31

Advancing to step 2:
When dividing 54 by 31, we get 1 with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 23 after subtracting 31 from 54.
Append the next digit (7) from the dividend to 23 and continue with: 237 / 31

Step 3:
31 goes into 237 7 times with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 17.0
Deduct 217 from 237 and we're left with 20.
Include the next digit (1) from the dividend after 20, then repeat: 201 / 31

Going ahead to step 4:
When dividing 201 by 31, we get 6 with a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 176.0
If we subtract 186 from 201, we get 15.
Bring next digit (5) of the dividend behind the 15 and repeat the process: 155 / 31

Advancing to step 5:
When dividing 155 by 31, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 1765.0
Subtract 155 from 155 to get 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 31

Advancing to step 6:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 17650.0
If we take 0 away from 7, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 7:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The next digit of our result is 2. 
Result so far: 17650.2
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 8:
If we divide 80 by 31, we get 2 and a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 17650.22
If we subtract 62 from 80, we 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.

After the division, we end up with 17650.22 and a remainder of 0.018.