Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decwrl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!decwrl!dec-rhea!dec-sprite!osman From: osman@sprite.DEC (Eric, dtn 283-7484, Burlington Ma.) Newsgroups: net.puzzle Subject: > What comes next in the series 2, 3, 5, 7 ??? Message-ID: <1635@decwrl.UUCP> Date: Fri, 12-Apr-85 09:30:04 EST Article-I.D.: decwrl.1635 Posted: Fri Apr 12 09:30:04 1985 Date-Received: Sun, 14-Apr-85 03:17:16 EST Sender: daemon@decwrl.UUCP Organization: DEC Engineering Network Lines: 94 This is easy. The next four numbers are 8 7 3 -5 Why ? Because I did a finite difference analysis on the original sequence: 2 1 3 1 2 -1 5 0 2 7 First column (original problem) is not all the same number, so we're not dealing with a constant (bet you knew THAT already, huh?). Second column is not all the same, so not linear either. Third column not the same so not quadratic either. Fourth column contains all the same number (they're ALL -1) so we've got a cubic :-). Hence we can put another -1 below it like this: 2 1 3 1 2 -1 5 0 2 -1 7 We can now add the 0 to the new -1 to get another number (-1) in our third column. Adding twice more, we see that the next number in the original sequence is 8. (2 + -1 = 1, 7 + 1 = 8.) 2 1 3 1 2 -1 5 0 2 -1 7 -1 1 8 I put in some more -1's just to see what the next four numbers of the original sequence were: 2 1 3 1 2 -1 5 0 2 -1 7 -1 1 -1 8 -2 -1 -1 7 -3 -4 -1 3 -4 -8 -5 Yes, I know this isn't the only answer. But it's certainly valid, right ? (Other valid answers would be to pretend it's quartic, like put 0 under the original -1 instead of -1, then put 1, then 2 etc.) -------------------------------------------------------------------- While I've got you on the line, here's another puzzle: I'm looking for a random number generator that generates a number from negative infinity to positive infinity. I'd imagine we could work with something like NEW = TANGENT (PI/2 * (RND(NORM(OLD))) where NORM somehow maps the OLD random number into whatever our computer wants as a seed to its RND function, which I assume gives a random number from 0 to 1. Then multiply by PI/2 and take the tangent, which depending on how close to PI/2 we are, yields a number anywhere up to infinity ! This isn't quite the answer yet. For one thing, I doubt it's uniformly distributed. Also, this answer is from 0 to infinity, and I'm looking for negative infinity to positive infinity. Have fun ! p.s. CAUTION: According to my father, Russia's offensive strategy against the USA is to publish math puzzles in Scientific American and other magazines (and net. ??) which causes the best brains of our country to work on the puzzles instead of furthering the state-of-the-art in technology ! /Eric Osman, Digital, Burlington, Ma.