31166903 divided by 39 
Let's see how many times 39 fits into 31166903.

Step 1:
3 divided by 39 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 39

Advancing to step 2:
When dividing 31 by 39, we get 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Fetch the next digit (1) from the dividend, attach it to 31 and continue: 311 / 39

On to step 3:
39 goes into 311 7 times with a remainder of 38.
Use 7 as the next digit of our solution. 
Result so far: 7.0
If we take 273 away from 311, we end up with 38.
Bring next digit (6) of the dividend behind the 38 and repeat the process: 386 / 39

Advancing to step 4:
The number 39 fits into 386 9 times, leaving a remainder of 35.
Use 9 as the next digit of our solution. 
Result so far: 79.0
Deduct 351 from 386 and we're left with 35.
Include the next digit (6) from the dividend after 35, then repeat: 356 / 39

Moving on to step 5:
The number 39 fits into 356 9 times, leaving a remainder of 5.
The next digit of our result is 9. 
Result so far: 799.0
Subtract 351 from 356 to get 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 39

Let's proceed to step 6:
The number 39 fits into 59 1 times, leaving a remainder of 20.
The next digit of our result is 1. 
Result so far: 7991.0
The remainder is 20 after subtracting 39 from 59.
Grab the next digit (0) from the dividend, add it to 20, then carry on: 200 / 39

Let's proceed to step 7:
The number 39 fits into 200 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 79915.0
If we subtract 195 from 200, we get 5.
Grab the next digit (3) from the dividend, add it to 5, then carry on: 53 / 39

Let's proceed to step 8:
39 goes into 53 1 times with a remainder of 14.
Write down 1 as next digit of the result. 
Result so far: 799151.0
Subtracting 39 from 53 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
39 can be fit into 140 3 times, resulting in a remainder of 23.
The number 3 becomes the next digit in our result. 
Result so far: 799151.3
If we subtract 117 from 140, 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.

Advancing to step 10:
230 divided by 39 is 5 with a remainder of 35.
The next digit of our result is 5. 
Result so far: 799151.35
If we take 195 away from 230, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 11:
350 divided by 39 is 8 with a remainder of 38.
The next digit of our result is 8. 
Result so far: 799151.358
Deduct 312 from 350 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 12:
If we divide 380 by 39, we get 9 and a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 799151.3589
Subtract 351 from 380 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 13:
39 goes into 290 7 times with a remainder of 17.
Record the quotient 7 as the next digit in the result. 
Result so far: 799151.35897
Subtracting 273 from 290 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 14:
The number 39 fits into 170 4 times, leaving a remainder of 14.
Use 4 as the next digit of our solution. 
Result so far: 799151.358974
The remainder is 14 after subtracting 156 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 15:
39 goes into 140 3 times with a remainder of 23.
The number 3 becomes the next digit in our result. 
Result so far: 799151.3589743
If we take 117 away from 140, we end up with 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 16:
39 can be fit into 230 5 times, resulting in a remainder of 35.
The number 5 becomes the next digit in our result. 
Result so far: 799151.35897435
Subtract 195 from 230 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

In conclusion, the division gives 799151.35897435 with a balance of 3.5e-08.