31489771 ÷ 538 
We want to figure out the number of times 31489771 can be divided by 538.

Step 1:
The number 538 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 538

Advancing to step 2:
538 can be fit into 31 0 times, resulting in a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Append the next digit (4) from the dividend to 31 and continue with: 314 / 538

Step 3:
If we divide 314 by 538, we get 0 and a remainder of 314.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 314 and we're left with 314.
Take the next digit (8) from the dividend and append it to 314, then repeat: 3148 / 538

On to step 4:
The number 538 fits into 3148 5 times, leaving a remainder of 458.
The next digit of our result is 5. 
Result so far: 5.0
If we subtract 2690 from 3148, we get 458.
Take the next digit (9) from the dividend and append it to 458, then repeat: 4589 / 538

Let's proceed to step 5:
538 goes into 4589 8 times with a remainder of 285.
Record the quotient 8 as the next digit in the result. 
Result so far: 58.0
Subtracting 4304 from 4589 leaves us with 285.
Bring next digit (7) of the dividend behind the 285 and repeat the process: 2857 / 538

Advancing to step 6:
2857 divided by 538 is 5 with a remainder of 167.
Write down 5 as next digit of the result. 
Result so far: 585.0
If we take 2690 away from 2857, we end up with 167.
Fetch the next digit (7) from the dividend, attach it to 167 and continue: 1677 / 538

Step 7:
When dividing 1677 by 538, we get 3 with a remainder of 63.
Write down 3 as next digit of the result. 
Result so far: 5853.0
Subtracting 1614 from 1677 leaves us with 63.
Grab the next digit (1) from the dividend, add it to 63, then carry on: 631 / 538

Moving on to step 8:
If we divide 631 by 538, we get 1 and a remainder of 93.
Put 1 as the next digit of the answer. 
Result so far: 58531.0
The remainder is 93 after subtracting 538 from 631.
Since there are no more digits in the dividend, we add a zero to the remainder making it 930, and continue the process.

Moving on to step 9:
930 divided by 538 is 1 with a remainder of 392.
Record the quotient 1 as the next digit in the result. 
Result so far: 58531.1
If we take 538 away from 930, we end up with 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Advancing to step 10:
When dividing 3920 by 538, we get 7 with a remainder of 154.
Use 7 as the next digit of our solution. 
Result so far: 58531.17
The remainder is 154 after subtracting 3766 from 3920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

On to step 11:
If we divide 1540 by 538, we get 2 and a remainder of 464.
Put 2 as the next digit of the answer. 
Result so far: 58531.172
If we take 1076 away from 1540, we end up with 464.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4640, and continue the process.

Going ahead to step 12:
The number 538 fits into 4640 8 times, leaving a remainder of 336.
Put 8 as the next digit of the answer. 
Result so far: 58531.1728
Deduct 4304 from 4640 and we're left with 336.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3360, and continue the process.

Moving on to step 13:
If we divide 3360 by 538, we get 6 and a remainder of 132.
The next digit of our result is 6. 
Result so far: 58531.17286
If we take 3228 away from 3360, we end up with 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Step 14:
538 can be fit into 1320 2 times, resulting in a remainder of 244.
Put 2 as the next digit of the answer. 
Result so far: 58531.172862
If we subtract 1076 from 1320, we get 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

Going ahead to step 15:
2440 divided by 538 is 4 with a remainder of 288.
The number 4 becomes the next digit in our result. 
Result so far: 58531.1728624
Subtracting 2152 from 2440 leaves us with 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

On to step 16:
The number 538 fits into 2880 5 times, leaving a remainder of 190.
The next digit of our result is 5. 
Result so far: 58531.17286245
Deduct 2690 from 2880 and we're left with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

The final result is 58531.17286245 with a remainder of 1.9e-07.