Let's divide 39540712 by 397
We want to divide 39540712 by 397.

Let's proceed to step 1:
3 divided by 397 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 397

Step 2:
39 divided by 397 is 0 with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Fetch the next digit (5) from the dividend, attach it to 39 and continue: 395 / 397

Let's proceed to step 3:
If we divide 395 by 397, we get 0 and a remainder of 395.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 395, we end up with 395.
Take the next digit (4) from the dividend and append it to 395, then repeat: 3954 / 397

Step 4:
When dividing 3954 by 397, we get 9 with a remainder of 381.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 3573 from 3954, we get 381.
Fetch the next digit (0) from the dividend, attach it to 381 and continue: 3810 / 397

Step 5:
The number 397 fits into 3810 9 times, leaving a remainder of 237.
Put 9 as the next digit of the answer. 
Result so far: 99.0
If we subtract 3573 from 3810, we get 237.
Append the next digit (7) from the dividend to 237 and continue with: 2377 / 397

On to step 6:
When dividing 2377 by 397, we get 5 with a remainder of 392.
Record the quotient 5 as the next digit in the result. 
Result so far: 995.0
If we take 1985 away from 2377, we end up with 392.
Grab the next digit (1) from the dividend, add it to 392, then carry on: 3921 / 397

Let's proceed to step 7:
The number 397 fits into 3921 9 times, leaving a remainder of 348.
The number 9 becomes the next digit in our result. 
Result so far: 9959.0
If we take 3573 away from 3921, we end up with 348.
Take the next digit (2) from the dividend and append it to 348, then repeat: 3482 / 397

Advancing to step 8:
The number 397 fits into 3482 8 times, leaving a remainder of 306.
The next digit of our result is 8. 
Result so far: 99598.0
Subtracting 3176 from 3482 leaves us with 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Moving on to step 9:
If we divide 3060 by 397, we get 7 and a remainder of 281.
Put 7 as the next digit of the answer. 
Result so far: 99598.7
Subtracting 2779 from 3060 leaves us with 281.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2810, and continue the process.

Advancing to step 10:
The number 397 fits into 2810 7 times, leaving a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 99598.77
Subtract 2779 from 2810 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

The final outcome is 99598.77, with a leftover of 0.031.