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

Going ahead to step 1:
166 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (5) from the dividend, attach it to 4 and continue: 45 / 166

Moving on to step 2:
When dividing 45 by 166, we get 0 with a remainder of 45.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 45 and we're left with 45.
Include the next digit (7) from the dividend after 45, then repeat: 457 / 166

Moving on to step 3:
166 goes into 457 2 times with a remainder of 125.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 125 after subtracting 332 from 457.
Take the next digit (9) from the dividend and append it to 125, then repeat: 1259 / 166

Let's proceed to step 4:
166 can be fit into 1259 7 times, resulting in a remainder of 97.
The next digit of our result is 7. 
Result so far: 27.0
Deduct 1162 from 1259 and we're left with 97.
Fetch the next digit (0) from the dividend, attach it to 97 and continue: 970 / 166

On to step 5:
When dividing 970 by 166, we get 5 with a remainder of 140.
Record the quotient 5 as the next digit in the result. 
Result so far: 275.0
Subtract 830 from 970 to get 140.
Append the next digit (0) from the dividend to 140 and continue with: 1400 / 166

Step 6:
The number 166 fits into 1400 8 times, leaving a remainder of 72.
Use 8 as the next digit of our solution. 
Result so far: 2758.0
The remainder is 72 after subtracting 1328 from 1400.
Include the next digit (5) from the dividend after 72, then repeat: 725 / 166

Advancing to step 7:
166 can be fit into 725 4 times, resulting in a remainder of 61.
The next digit of our result is 4. 
Result so far: 27584.0
If we subtract 664 from 725, we get 61.
Include the next digit (7) from the dividend after 61, then repeat: 617 / 166

Step 8:
166 can be fit into 617 3 times, resulting in a remainder of 119.
Write down 3 as next digit of the result. 
Result so far: 275843.0
The remainder is 119 after subtracting 498 from 617.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

Step 9:
166 can be fit into 1190 7 times, resulting in a remainder of 28.
The number 7 becomes the next digit in our result. 
Result so far: 275843.7
Deduct 1162 from 1190 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 10:
If we divide 280 by 166, we get 1 and a remainder of 114.
Write down 1 as next digit of the result. 
Result so far: 275843.71
Subtracting 166 from 280 leaves us with 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

Going ahead to step 11:
The number 166 fits into 1140 6 times, leaving a remainder of 144.
The number 6 becomes the next digit in our result. 
Result so far: 275843.716
Subtract 996 from 1140 to get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Going ahead to step 12:
166 goes into 1440 8 times with a remainder of 112.
Use 8 as the next digit of our solution. 
Result so far: 275843.7168
If we take 1328 away from 1440, we end up with 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Going ahead to step 13:
If we divide 1120 by 166, we get 6 and a remainder of 124.
Write down 6 as next digit of the result. 
Result so far: 275843.71686
Deduct 996 from 1120 and we're left with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Let's proceed to step 14:
166 can be fit into 1240 7 times, resulting in a remainder of 78.
Put 7 as the next digit of the answer. 
Result so far: 275843.716867
Subtracting 1162 from 1240 leaves us with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Let's proceed to step 15:
If we divide 780 by 166, we get 4 and a remainder of 116.
Put 4 as the next digit of the answer. 
Result so far: 275843.7168674
The remainder is 116 after subtracting 664 from 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Moving on to step 16:
When dividing 1160 by 166, we get 6 with a remainder of 164.
Put 6 as the next digit of the answer. 
Result so far: 275843.71686746
Subtract 996 from 1160 to get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

The quotient of the division is 275843.71686746, and the remainder is 1.64e-07.