Find Formula for Repeating Sequence: 1 1 1 1 5 5 5 5 1 1 1 1

  • Thread starter Thread starter dlthompson81
  • Start date Start date
  • Tags Tags
    Sequence
dlthompson81
Messages
44
Reaction score
0

Homework Statement



The sequence is 1 1 1 1 5 5 5 5 1 1 1 1

I need to find the formula for the sequence.


Homework Equations





The Attempt at a Solution



I had a previous problem that was similar. It was a sequence of 1 5 1 5 1 5. I managed to get it with the formula of 3+2(-1)n.

I did a little research through my notes/book and I found an explanation. It said I could set n equal to a fraction to get it to alternate numbers for different lengths. It was implying that (-1)n/2 would give me 2 repeating of the number from the equation, (-1)n/4 would give me 4 repeating, etc.

I understand the concept, at least, I think I do, but when I punch it into my calculator, (-1)n/any# gives me an error. I know (-1)n/# is the same as the # root of the number, and the root of -1 is an imaginary number.

Maybe I misunderstood something in the notes. Anyone point me in the right direction? Thanks.
 
Physics news on Phys.org
The hint with (-1)^(n/2) only works if you use the Gauss floor function, because, as you said correctly (-1)^(1/2)=i, hence not what you are looking for.

Try a+b*(-1)^n+c*(-1)^(2n)+d*(-1)^(3n)+e*(-1)^(4n)
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top