31580366 divided by 512 
We want to figure out the number of times 31580366 can be divided by 512.

Going ahead to step 1:
512 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 512

On to step 2:
When dividing 31 by 512, we get 0 with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (5) from the dividend and append it to 31, then repeat: 315 / 512

Let's proceed to step 3:
315 divided by 512 is 0 with a remainder of 315.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 315 after subtracting 0 from 315.
Include the next digit (8) from the dividend after 315, then repeat: 3158 / 512

Going ahead to step 4:
512 goes into 3158 6 times with a remainder of 86.
Use 6 as the next digit of our solution. 
Result so far: 6.0
The remainder is 86 after subtracting 3072 from 3158.
Include the next digit (0) from the dividend after 86, then repeat: 860 / 512

On to step 5:
512 can be fit into 860 1 times, resulting in a remainder of 348.
Use 1 as the next digit of our solution. 
Result so far: 61.0
Deduct 512 from 860 and we're left with 348.
Include the next digit (3) from the dividend after 348, then repeat: 3483 / 512

Moving on to step 6:
512 goes into 3483 6 times with a remainder of 411.
Put 6 as the next digit of the answer. 
Result so far: 616.0
If we subtract 3072 from 3483, we get 411.
Include the next digit (6) from the dividend after 411, then repeat: 4116 / 512

Moving on to step 7:
The number 512 fits into 4116 8 times, leaving a remainder of 20.
The number 8 becomes the next digit in our result. 
Result so far: 6168.0
If we subtract 4096 from 4116, we get 20.
Bring next digit (6) of the dividend behind the 20 and repeat the process: 206 / 512

On to step 8:
The number 512 fits into 206 0 times, leaving a remainder of 206.
Record the quotient 0 as the next digit in the result. 
Result so far: 61680.0
Subtract 0 from 206 to get 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Advancing to step 9:
512 goes into 2060 4 times with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 61680.4
If we subtract 2048 from 2060, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 10:
120 divided by 512 is 0 with a remainder of 120.
Use 0 as the next digit of our solution. 
Result so far: 61680.4
If we take 0 away from 120, we end up with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Moving on to step 11:
512 can be fit into 1200 2 times, resulting in a remainder of 176.
The number 2 becomes the next digit in our result. 
Result so far: 61680.402
If we take 1024 away from 1200, we end up with 176.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

Let's proceed to step 12:
512 can be fit into 1760 3 times, resulting in a remainder of 224.
The number 3 becomes the next digit in our result. 
Result so far: 61680.4023
Subtracting 1536 from 1760 leaves us with 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

Step 13:
512 can be fit into 2240 4 times, resulting in a remainder of 192.
The number 4 becomes the next digit in our result. 
Result so far: 61680.40234
If we subtract 2048 from 2240, we get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

On to step 14:
512 can be fit into 1920 3 times, resulting in a remainder of 384.
Record the quotient 3 as the next digit in the result. 
Result so far: 61680.402343
If we subtract 1536 from 1920, we get 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Let's proceed to step 15:
512 can be fit into 3840 7 times, resulting in a remainder of 256.
Use 7 as the next digit of our solution. 
Result so far: 61680.4023437
Subtract 3584 from 3840 to get 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

Moving on to step 16:
The number 512 fits into 2560 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 61680.40234375
If we take 2560 away from 2560, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 61680.40234375 with a balance of 0.0.