Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.7K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Formula for sequnaces

Posted 11 years ago

I have developed a formula, that given ANY sequance of N numbers, will output a mathematical function that has them.

for Instanse: 26,25,192

will return a function that:

f(1) = 26

f(2) = 25

f(3) = 192

Are you in wolfram interested at that?

btw, My formula returns a nasty thing, that when inputed to wolfram: "Simplify function" it returns often a more beautiful thing.

POSTED BY: Amit Moryossef
2 Replies
POSTED BY: Marco Thiel
Posted 11 years ago

Wow that is some detailed stuff!!

I looked it up before creating the Formula, and didnt find anything. Now I see that yes, it is pretty much trivial...

Steps:

1 - Look if its an arithmetic or a geometric sequance, if so - trivial

2 - If not, lets say we have 3 numbers (it will be much easier without a computer to process):

seq={26,25,192}

so A[n] = ((n-3)(n-2)26 + (n-1)(n-3)25 + (n-2)(n-1)192)/((n-1)!(3-n)!(-1)^(3-n))

And by wolfram, that is:

A[n] = (243n^2 - 806n + 615) / ((n-1)!(3-n)!(-1)^(3-n))

Pretty lame compared to what you just showed me... wolfram returns 84n^2 - 253n + 195 - much more simple..

  • Which is much more simple than deviding by factorials, but I dont have a PRO subscription so I cant see step-by-step...

Thanks for enlightning me... And of course there are infinity options, because I always can add to the sequance another number that is different than the number it would have given me.

POSTED BY: Amit Moryossef
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard