in reply to A script to determine the next number in a sequence

This smells like math homework. See http://www.purplemath.com/modules/nextnumb.htm
  • Comment on Re: A script to determine the next number in a sequence