Hello
Is there a program/formula that I can use on my casio cg20 to find the nth term of a sequence of numbers that involves simply putting in a few terms? Graphing Calculator Graphing Calculator Graphing Calculator
No. Even assuming the sequence is based on evaluating a polynomial, it is impossible in general to know the degree of the polynomial.
I have a TI-83/84+ program that can solve this problem.

Code:
ClrHome
Disp "    PATTERN   "
Input "",Str0
Input "[n]=",Str3
expr("{"+Str3→ʟC
expr("{"+Str0→ʟA
dim(ʟA→A
A→dim(ʟB
For(A,1,A)
A→ʟB(A)
End
CubicReg ʟB,ʟA,Y₁
Disp Y₁(ʟC)
If the list is not very long, then this won't matter at all, but I always love optimizations soooo this part
ohernandez wrote:
I have a TI-83/84+ program that can solve this problem.

Code:
dim(ʟA→A
A→dim(ʟB
For(A,1,A)
A→ʟB(A)
End

Could be replaced by

Code:
seq(X,X,1,dim(ʟA→ʟB

Code:
cumSum(1 or ʟA→B


The code only works for fourth-degree polynomials though, so it fails on anything else, including simple formulas like the Fibonacci sequence (for which it gives x5 = 0).
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement