MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Find (cyclic) Sequence


Hi,

> Consider the following sequence {0,3,2,1} which can be related to the
> reference k: {0,1,2,3} as 4-k (mod 4).
> 
> I've tried to use FindSequenceFunction on problems like the example
> above without success.
> I understand I'm working within the context of modular arithmetic...
> Does anyone have a suggestion on how to use Mathematica to tackle this
> problem?

I think you would just need to repeat your sequence to make Mathematica
understand, obviously the task for FindSequenceFunction is a easier when
the sequences you feed it are longer:

FindSequenceFunction[{0, 4, 3, 2, 1, 0, 4, 3, 2, 1}]

gives:

Mod[1 + 4 #1, 5] &


hth,

albert


  • Prev by Date: Re: NDSolve cannot solve set of ODEs
  • Next by Date: problems with NMinimize
  • Previous by thread: Find (cyclic) Sequence
  • Next by thread: Re: Find (cyclic) Sequence