Big trouble with A049602

Paul D. Hanna pauldhanna at juno.com
Sun Aug 29 21:15:28 CEST 2004


Thomas, et al,
        I see now that my offset for lucas(n) is wrong - the proper
definition is: 
 
    lucas(n)=fibonacci(n+2)-fibonacci(n-2)
 
Then your formula is correct except the funny characters at the end.
The corrected form of your formula is:
  
(*) 
a(n)=floor((lucas(2*n)-lucas(n))*sqrt(5)/10+(n%2)*fibonacci(n)+(1-n%2))
  
where n%2 = n (mod 2).
 
I am confident that this (*) was your original formula.
Paul
 
On Sun, 29 Aug 2004 14:51:55 -0400 "Paul D. Hanna" <pauldhanna at juno.com>
writes:
Hello Thomas, 
       Perhaps this is the formula for a(n) that you had?
This is what is NOW in A049602:
(1)  Floor((lucas(2n)-lucas(n))*sqrt(5)/10+(n%2)?fibonacci(n):1).
 
Here is my PARI code that generates sequece A049602:
   
(2) 
a(n)=floor((lucas(2*n)-lucas(n))/(5+sqrt(5))+(n%2)*fibonacci(n)+(1-n%2))

where:

(3)  lucas(n)=fibonacci(n+3)-fibonacci(n-1)
  
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.seqfan.eu/pipermail/seqfan/attachments/20040829/46ab8216/attachment-0001.htm>


More information about the SeqFan mailing list