Deriving a formula for an integer sequence.

Aion

Junior Member
Joined
May 8, 2018
Messages
193
Can someone help me derive a formula for the following sequence, thanks!

[MATH]A, AB, -A(B^2),-A(B^3),A(B^4)...[/MATH]
 
I think I figured it out.

[MATH]a_{n}=A(B^{n-1})(-1)^{n}[/MATH]

Never mind, that does not work :p
 
I need to multiply [MATH]A(B^{n-1})[/MATH] with a function that outputs the series, [MATH]1,1,-1,-1,1 [/MATH].
 
It look to me like (if we are beginning at \(n=1\)):

[MATH]a_n=(-1)^{\left\lfloor\frac{n-1}{2}\right\rfloor}AB^{n-1}[/MATH]
I dont understand what [MATH]⌊(n−1)/2⌋ [/MATH] means :d. How did you find that fomula :D?
 
That is the "floor" function, which rounds down to nearest integer. I used it to account for the fact that the sign appears to change on every other term rather than every term, which your formula does.
 
What about

[MATH]a_{n}=A(B^n)Sin(n\pi/2)+A(B^n)Cos(n\pi/2)[/MATH]
 
What about [MATH]a_{n}=A(B^n)Sin(n\pi/2)+A(B^n)Cos(n\pi/2)[/MATH]
I thought it was more complicated. SEE HERE.
I was thinking of a programming assignment: \(1, 1,11,1,11,111,1,11,111,1111,\cdots\) to produce that string.
 
Top