Hello, tukilala!
Could there be typos in the problem?
I find no discernable pattern in the numbers.
. .
Can someone help me to build the formula?
. .
if n=1 then the formula answer is:0
if n=2 or n=3 or n=4 then the formula answer is:1
if n=5 or n=6 or.........or n=13 then the formula answer is:2
if n=14 or n=15 or.........or n=40 then the formula answer is:3
and so on.....
someone can help me to build the formula that makes thos calculations???
Hello tukilalaThe key to this is to find a formula to find the first term in each of the original groups; that is . The consecutive differences are which are, of course, powers of .
So if we try a formula of the type , we shall probably be OK.
You'll find that this formula generates the numbers that start each group: (Don't worry about the remaining numbers in each group: we'll deal with those later.)
Now, how can we use this function to generate the numbers ?
The answer is, of course, to find the inverse function; that is, to make the subject of the formula:
Multiply both sides by :
Now the tricky bit: take logs to base of both sides:
So there's our formula that will work for the first number in each group. Try it out.
... and so on.
OK. So, finally, what do we do about the remaining numbers in each group? Well, when we use the formula above with any of the other numbers in the group, the bit will give us the whole number that we want, with an extra decimal bit as well. All we need to do is to use the floor function, , to ignore the decimal part, and just return the integer part.
So, finally (replacing our with the referred to in the original question) the function is:
(If you want to use a calculator or a spreadsheet to check this out and you don't know how to handle , you can use the formula , where is log to base 10 of .)
Grandad
Hello, tukilala!
You gave us more terms this time . . .
I can't find a neat formula . . .
. . . Table 1
Can someone help me to build the formula?
I examined the first term of each sequence and the number of terms.
. . . Obviously, it involves powers-of-3.
The row of Table 1 would have:
. . The numbers from
And that's the best I can do . . .