Jump to content

Equation for a sequence

Featured Replies

I want an equation generator for a set number of sequences, it's not an infinite sequence. For instance 71,73,70,56, I want an equation that would always give me a correct number nth number within this series or even for a series like this 1,1,1,1,2,1,1,1,1. It could be random sequences, but eventually I want to reduce this sequence to an equation so I can always find the nth number within this series, any number after this nth sequence doesn't matter. How can I do this?

  • Author

Cool, I want an equation that would apply for any sequence, how about 71,73,70,56?

Cool, I want an equation that would apply for any sequence,

[math]f(x)=sgn(abs(x-a_1))*b_1 + sgn(abs(x-a_2))*b_2 + .... + sgn(abs(x-a_n))*b_n[/math]

a1....n are indexes.

b1....n are values from sequence.

Edited by Sensei

Cool, I want an equation that would apply for any sequence,

 

Corrected version:

[latex]f(x)=(1-sgn(abs(x-a_1)))*b_1 + (1-sgn(abs(x-a_2)))*b_2 + .... + (1-sgn(abs(x-a_n)))*b_n[/latex]

a1....n are indexes.

b1....n are values from sequence.

Edited by Sensei

  • Author

Hmm this equation kind of grows though, but I get your point, I'm thinking of a single variable which doesn't seem possible

  • 2 weeks later...

One of my teachers gave, as an example, the sequence 23, 25, 26, 18, 17, 16. Those are the numbers of the highway exits he passes on his way to work- he takes exit 26 to a second highway.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.