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

Advancing to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (3) from the dividend after 5, then repeat: 53 / 31

On to step 2:
31 can be fit into 53 1 times, resulting in a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 53 to get 22.
Take the next digit (5) from the dividend and append it to 22, then repeat: 225 / 31

On to step 3:
If we divide 225 by 31, we get 7 and a remainder of 8.
Use 7 as the next digit of our solution. 
Result so far: 17.0
Subtracting 217 from 225 leaves us with 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 31

Advancing to step 4:
If we divide 82 by 31, we get 2 and a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 172.0
The remainder is 20 after subtracting 62 from 82.
Take the next digit (9) from the dividend and append it to 20, then repeat: 209 / 31

Step 5:
When dividing 209 by 31, we get 6 with a remainder of 23.
Put 6 as the next digit of the answer. 
Result so far: 1726.0
Subtracting 186 from 209 leaves us with 23.
Grab the next digit (7) from the dividend, add it to 23, then carry on: 237 / 31

Going ahead to step 6:
31 can be fit into 237 7 times, resulting in a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 17267.0
If we subtract 217 from 237, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 7:
200 divided by 31 is 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 17267.6
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 8:
When dividing 140 by 31, we get 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 17267.64
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 17267.645
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 10:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 17267.6451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 17267.64516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 12:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 17267.645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 13:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 17267.6451612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 14:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 17267.64516129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final result is 17267.64516129 with a remainder of 1e-09.