468,736 Members | 1,832 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,736 developers. It's quick & easy.

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 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
3 posts views Thread by sedaw | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.