471,119 Members | 1,391 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 3937 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.