Let's divide 565121 by 31
We're looking to find how many times 31 goes into 565121.

Moving on to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (6) of the dividend behind the 5 and repeat the process: 56 / 31

Going ahead to step 2:
31 goes into 56 1 times with a remainder of 25.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 25 after subtracting 31 from 56.
Bring next digit (5) of the dividend behind the 25 and repeat the process: 255 / 31

Moving on to step 3:
255 divided by 31 is 8 with a remainder of 7.
Use 8 as the next digit of our solution. 
Result so far: 18.0
If we subtract 248 from 255, we get 7.
Bring next digit (1) of the dividend behind the 7 and repeat the process: 71 / 31

Going ahead to step 4:
When dividing 71 by 31, we get 2 with a remainder of 9.
Record the quotient 2 as the next digit in the result. 
Result so far: 182.0
If we subtract 62 from 71, we get 9.
Append the next digit (2) from the dividend to 9 and continue with: 92 / 31

Moving on to step 5:
The number 31 fits into 92 2 times, leaving a remainder of 30.
Use 2 as the next digit of our solution. 
Result so far: 1822.0
Subtract 62 from 92 to get 30.
Bring next digit (1) of the dividend behind the 30 and repeat the process: 301 / 31

Step 6:
When dividing 301 by 31, we get 9 with a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 18229.0
Deduct 279 from 301 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 18229.7
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
30 divided by 31 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 18229.7
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 9:
300 divided by 31 is 9 with a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 18229.709
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 10:
31 can be fit into 210 6 times, resulting in a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 18229.7096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 11:
When dividing 240 by 31, we get 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 18229.70967
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 12:
When dividing 230 by 31, we get 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 18229.709677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 18229.709677 with a remaining 1.3e-06.