Let's divide 506398 by 97
We want to figure out the number of times 506398 can be divided by 97.

Step 1:
When dividing 5 by 97, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 97

On to step 2:
97 goes into 50 0 times with a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Grab the next digit (6) from the dividend, add it to 50, then carry on: 506 / 97

Step 3:
The number 97 fits into 506 5 times, leaving a remainder of 21.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtract 485 from 506 to get 21.
Grab the next digit (3) from the dividend, add it to 21, then carry on: 213 / 97

Advancing to step 4:
97 goes into 213 2 times with a remainder of 19.
Record the quotient 2 as the next digit in the result. 
Result so far: 52.0
Deduct 194 from 213 and we're left with 19.
Include the next digit (9) from the dividend after 19, then repeat: 199 / 97

Let's proceed to step 5:
If we divide 199 by 97, we get 2 and a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 522.0
Deduct 194 from 199 and we're left with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 97

Let's proceed to step 6:
97 can be fit into 58 0 times, resulting in a remainder of 58.
The number 0 becomes the next digit in our result. 
Result so far: 5220.0
The remainder is 58 after subtracting 0 from 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 7:
97 can be fit into 580 5 times, resulting in a remainder of 95.
Record the quotient 5 as the next digit in the result. 
Result so far: 5220.5
Subtract 485 from 580 to get 95.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

Let's proceed to step 8:
97 can be fit into 950 9 times, resulting in a remainder of 77.
Use 9 as the next digit of our solution. 
Result so far: 5220.59
If we subtract 873 from 950, we get 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Step 9:
97 can be fit into 770 7 times, resulting in a remainder of 91.
Write down 7 as next digit of the result. 
Result so far: 5220.597
If we subtract 679 from 770, we get 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 910, and continue the process.

Step 10:
97 can be fit into 910 9 times, resulting in a remainder of 37.
Use 9 as the next digit of our solution. 
Result so far: 5220.5979
If we subtract 873 from 910, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 11:
370 divided by 97 is 3 with a remainder of 79.
The next digit of our result is 3. 
Result so far: 5220.59793
If we take 291 away from 370, we end up with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Moving on to step 12:
The number 97 fits into 790 8 times, leaving a remainder of 14.
The next digit of our result is 8. 
Result so far: 5220.597938
If we subtract 776 from 790, we get 14.
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 13:
The number 97 fits into 140 1 times, leaving a remainder of 43.
The next digit of our result is 1. 
Result so far: 5220.5979381
Subtract 97 from 140 to get 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Advancing to step 14:
97 can be fit into 430 4 times, resulting in a remainder of 42.
The next digit of our result is 4. 
Result so far: 5220.59793814
The remainder is 42 after subtracting 388 from 430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

The final outcome is 5220.59793814, with a leftover of 4.2e-08.