468,736 Members | 1,832 Online

# Find the series problem

Given an arbitrary number series, how do I identify the series and find the
Nth number...
for e.g 1,3,5,7 is an AP and the next number will be 9
1,8,27,64 is the series of cubes and the next will be 125
1,1,2,3,5,8 is the Fibonacci series
The thing is I'll be given the series only...I have to identify the series
and find the next number. Pointers on how to do this please ...
Regards,
Sriram
Nov 22 '05 #1
2 3818 It is theoretically impossible for a computer to determine the pattern
of an arbitrary number series. The only patterns it will recognize
are the patterns you program it to detect. So to detect a Fibonacci
series, just read each value, do the math, and compare to the actual
sequence. THe formula for Fibonnaci is N_t+2 = N_t+1 + N_t for t=0 to
inifinity with N_0 = 1.

Sriram Krishnan [at] gmx [dot] net wrote:
Given an arbitrary number series, how do I identify the series and find
the Nth number...
for e.g 1,3,5,7 is an AP and the next number will be 9
1,8,27,64 is the series of cubes and the next will be 125
1,1,2,3,5,8 is the Fibonacci series
The thing is I'll be given the series only...I have to identify the
series and find the next number. Pointers on how to do this please ...
Regards,
Sriram

Nov 22 '05 #2
It is theoretically impossible for a computer to determine the pattern
of an arbitrary number series. The only patterns it will recognize
are the patterns you program it to detect. So to detect a Fibonacci
series, just read each value, do the math, and compare to the actual
sequence. THe formula for Fibonnaci is N_t+2 = N_t+1 + N_t for t=0 to
inifinity with N_0 = 1.

Sriram Krishnan [at] gmx [dot] net wrote:
Given an arbitrary number series, how do I identify the series and find
the Nth number...
for e.g 1,3,5,7 is an AP and the next number will be 9
1,8,27,64 is the series of cubes and the next will be 125
1,1,2,3,5,8 is the Fibonacci series
The thing is I'll be given the series only...I have to identify the
series and find the next number. Pointers on how to do this please ...
Regards,
Sriram

Nov 22 '05 #3

### This discussion thread is closed

Replies have been disabled for this discussion.

### Similar topics

 1 post views Thread by Sriram Krishnan [at] gmx [dot] net | last post: by 4 posts views Thread by ryu | last post: by 4 posts views Thread by aW | last post: by 1 post views Thread by Sriram Krishnan [at] gmx [dot] net | last post: by 4 posts views Thread by geoffp | last post: by 8 posts views Thread by srinpraveen | last post: by 5 posts views Thread by tinie | last post: by 4 posts views Thread by keirnus | last post: by 2 posts views Thread by pbd22 | last post: by 3 posts views Thread by sedaw | last post: by reply views Thread by dreamtext | last post: by reply views Thread by rvphilip | last post: by reply views Thread by coodingd | last post: by reply views Thread by ioana budai | last post: by reply views Thread by zhoujie | last post: by 4 posts views Thread by HopkinsUni | last post: by 2 posts views Thread by xarzu | last post: by reply views Thread by Rubens | last post: by reply views Thread by Randomdude12 | last post: by