## ParthKohli 3 years ago How may I use Wolfram Mathematica to make a formula for ANY given sequence?

1. Ishaan94

Post the sequence.

2. ParthKohli

3. ParthKohli

@robtobey Mathematica help, if you may.

4. eliassaab

Table[ n,{n,1,100}]

5. ParthKohli

For example, if I have {1,5,138233,393943585}, how will I make a formula for it USING WOLFRAM MATHEMATICA?

6. eliassaab

This will give you the sequence from 1 to 100

7. ParthKohli

@eliassaab Is there a function which I could use for finding a formula?

8. eliassaab

You have to know a(n) in terms of n \[ Table[ n/(n+1),{n,1,100}] \]

9. ParthKohli

For example, if I have {1,2,4,8,16,32.....}, is there a command which would return me with \(a_n = 2^{n - 1}\)?

10. eliassaab

Sum[i, {i, 1, k}] = (k (k + 1))/2

11. eliassaab

No. if you know a(n), you can find the sequence, but not vice versa.

12. ParthKohli

I wish Mathematica could generalize a formula for any given sequence.

13. eliassaab

You can write a function that check a specific sequence.

14. ParthKohli

Thank you for the effort anyway. :)