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

Going ahead to step 1:
When dividing 3 by 506, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 506

Moving on to step 2:
The number 506 fits into 31 0 times, leaving a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 506

Advancing to step 3:
When dividing 311 by 506, we get 0 with a remainder of 311.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 311 to get 311.
Include the next digit (2) from the dividend after 311, then repeat: 3112 / 506

On to step 4:
3112 divided by 506 is 6 with a remainder of 76.
Write down 6 as next digit of the result. 
Result so far: 6.0
Subtracting 3036 from 3112 leaves us with 76.
Grab the next digit (9) from the dividend, add it to 76, then carry on: 769 / 506

Let's proceed to step 5:
769 divided by 506 is 1 with a remainder of 263.
The number 1 becomes the next digit in our result. 
Result so far: 61.0
Subtract 506 from 769 to get 263.
Fetch the next digit (7) from the dividend, attach it to 263 and continue: 2637 / 506

Step 6:
If we divide 2637 by 506, we get 5 and a remainder of 107.
Put 5 as the next digit of the answer. 
Result so far: 615.0
Subtract 2530 from 2637 to get 107.
Bring next digit (8) of the dividend behind the 107 and repeat the process: 1078 / 506

Step 7:
506 goes into 1078 2 times with a remainder of 66.
Record the quotient 2 as the next digit in the result. 
Result so far: 6152.0
Deduct 1012 from 1078 and we're left with 66.
Include the next digit (9) from the dividend after 66, then repeat: 669 / 506

Step 8:
669 divided by 506 is 1 with a remainder of 163.
Record the quotient 1 as the next digit in the result. 
Result so far: 61521.0
The remainder is 163 after subtracting 506 from 669.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1630, and continue the process.

Going ahead to step 9:
506 can be fit into 1630 3 times, resulting in a remainder of 112.
The number 3 becomes the next digit in our result. 
Result so far: 61521.3
The remainder is 112 after subtracting 1518 from 1630.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Step 10:
506 goes into 1120 2 times with a remainder of 108.
The number 2 becomes the next digit in our result. 
Result so far: 61521.32
Subtracting 1012 from 1120 leaves us with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Let's proceed to step 11:
506 can be fit into 1080 2 times, resulting in a remainder of 68.
Write down 2 as next digit of the result. 
Result so far: 61521.322
Deduct 1012 from 1080 and we're left with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

After the division, we end up with 61521.322 and a remainder of 0.0068.