You wish to find the smallest value of n for which f(n,a) ≥ 0 where f(n,a) = (a*(a+1)^(n-a)) - ((a^(n+1))/a)
I suggest that you let f(n,a) = 0 giving...
a*(a+1)^(n-a) = (a^(n+1))/a
...then simplify this, take logs, and then rearrange to n = <something in terms of a>
NOTE: I haven't checked that your inequality is correct. This is because I don't understand what you're trying to accomplish
. Perhaps if you can give us some extra background/ context then it might make things more obvious. However, if you're confident about your inequality then the method I've suggested will provide you with a direct answer. Are you familiar with logarithms?
EDIT: Since you require integer "n", then to finish off you'll have to find the next lowest integer value of the result by using the "floor" function
Thank you, and yes I believe that this is that equation in n = <something in terms of a> form: n < a*ln(a + 1)/ln(1 + 1/a).
The original way I tried to describe the value I'm looking for is: a^n > (a+1)^(n-a) which is where 0>=(a*(a+1)^(n-a))-(((a^(n+1))/a) comes from, with an extra a* added in in the front so the output is easier to work with.
As to what I'm trying to do, I'll try using a table to explain:
59049 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
2 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 |
3 | 3 | 9 | 27 | 81 | 243 | 729 | 2187 | 6561 | 19683 | 59049 |
4 | 4 | 16 | 64 | 256 | 1024 | 4096 | 16384 | | | |
The table is a table of powers of 1-4 below 59,049 up to the tenth power. The numbers on the left are being raised to the numbers in the top row, with cell A1 being the maximum value that the other cells can have. As you can see there are 3 more powers of 3 than powers of 4 below 3^10.
This is the same table with a max of 3^9:
19683 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
2 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 |
3 | 3 | 9 | 27 | 81 | 243 | 729 | 2187 | 6561 | 19683 | |
4 | 4 | 16 | 64 | 256 | 1024 | 4096 | 16384 | | | |
At 3^9 3 has only 2 more powers than 4 has, same with 3^8 and you can probably see that the first time that 3 has 3 more powers than 4 is at 3^10.
This table also works for 2 and 1:
8 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
2 | 2 | 4 | 8 | | | | | | | |
3 | 3 | | | | | | | | | |
4 | 4 | | | | | | | | | |
Here you can see that there are 3 powers of 2 that are 8 or less, while there is only 1 power of 3 that is 8 or less, so 2 has 2 more powers at 2^3 than 3 does.
The question is what number is the lowest number such that there are 4 more powers of 4 equal to or less than it than powers of 5 equal to or less than it. And what would that number be for powers of 5 or 6 or 125?
I hope I did a better job of explaining it this time.
Yes, I am familiar with logarithms, in fact when I put 0>=(a*(a+1)^(n-a))-(((a^(n+1))/a) into Microsoft Excel for n>11 the numbers got too big for excel to handle, I believe the limit is around 10^302 so I changed the formula to use logarithms instead and the highest value I input was 8^8 which I got a value of 312,976,389 for. Now that was for n^n, so it means that for the powers of 8 to have 8^8 more powers than the powers of 9 you need to raise 8 to the power of 312,976,389. Since I have to count the number of values below 0 to get that number I basically just input a starting value for my array of 1,000 cells and saw which error message the cells had then tried higher and lowers numbers converging to the number that the values became positive, a bit like some methods of adding sums to get Pi, you shoot high then low but get more digits of the number the more you add up.
Now for this: a^n > (a+1)^(n-a)
I asked this question on a different forum and someone said:
"Just because n = 3 satisfies the inequality doesn’t mean it’s the solution. n = 2 also satisfies the inequality since 4 > 30. So does n ≤ 1. In fact when a > 0, there is no minimum n that satisfies the inequality, but rather a maximal n < a*ln(a + 1)/ln(1 + 1/a). The maximum integer is the greatest integer n less than the right side of the solution."
Which if you look at the tables there is obviously a minimum value, which I guess means that a^n > (a+1)^(n-a) doesn't accurately describe the value/relationship I'm looking for which is why I didn't include it in my post here. The smallest number where 3 has 3 more powers than 4 is 3^10 so there has to be a minimum but I don't know how to express that in mathematical terms.
What I believe is going on with what that person was saying about a^n > (a+1)^(n-a) not having a minimum is because that inequality is essentially measuring the ratios of a and a+1 when raised to n, and not counting the number of powers that a and a+1 have gone through. So that person is right about there not being a minimum in that sense I believe, but I'm talking about the number of powers and not the ratios. And the number of powers do indeed have a minimum.
I never did get an answer on that other forum which is why I came here.
I hope that explains what I'm trying to do better, I'm sorry if I overexplained.