We divide 8161887 by 151
The aim is to understand the frequency of 151 in 8161887.

On to step 1:
The number 151 fits into 8 0 times, leaving a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 151

Let's proceed to step 2:
151 goes into 81 0 times with a remainder of 81.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 81, we end up with 81.
Include the next digit (6) from the dividend after 81, then repeat: 816 / 151

On to step 3:
The number 151 fits into 816 5 times, leaving a remainder of 61.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 755 away from 816, we end up with 61.
Fetch the next digit (1) from the dividend, attach it to 61 and continue: 611 / 151

Step 4:
When dividing 611 by 151, we get 4 with a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 54.0
If we subtract 604 from 611, we get 7.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 151

Let's proceed to step 5:
If we divide 78 by 151, we get 0 and a remainder of 78.
Use 0 as the next digit of our solution. 
Result so far: 540.0
Deduct 0 from 78 and we're left with 78.
Bring next digit (8) of the dividend behind the 78 and repeat the process: 788 / 151

Step 6:
When dividing 788 by 151, we get 5 with a remainder of 33.
The number 5 becomes the next digit in our result. 
Result so far: 5405.0
Subtract 755 from 788 to get 33.
Bring next digit (7) of the dividend behind the 33 and repeat the process: 337 / 151

On to step 7:
337 divided by 151 is 2 with a remainder of 35.
The next digit of our result is 2. 
Result so far: 54052.0
Subtracting 302 from 337 leaves us 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.

Step 8:
When dividing 350 by 151, we get 2 with a remainder of 48.
Write down 2 as next digit of the result. 
Result so far: 54052.2
The remainder is 48 after subtracting 302 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 9:
480 divided by 151 is 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 54052.23
Deduct 453 from 480 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 10:
If we divide 270 by 151, we get 1 and a remainder of 119.
The next digit of our result is 1. 
Result so far: 54052.231
The remainder is 119 after subtracting 151 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

Advancing to step 11:
151 can be fit into 1190 7 times, resulting in a remainder of 133.
Write down 7 as next digit of the result. 
Result so far: 54052.2317
If we subtract 1057 from 1190, we get 133.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1330, and continue the process.

Let's proceed to step 12:
151 can be fit into 1330 8 times, resulting in a remainder of 122.
Use 8 as the next digit of our solution. 
Result so far: 54052.23178
The remainder is 122 after subtracting 1208 from 1330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

Let's proceed to step 13:
151 goes into 1220 8 times with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 54052.231788
If we take 1208 away from 1220, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

In conclusion, the division gives 54052.231788 with a balance of 1.2e-06.