Re: Find (cyclic) Sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg109344] Re: Find (cyclic) Sequence
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Thu, 22 Apr 2010 06:44:02 -0400 (EDT)
- References: <hqou0k$9fp$1@smc.vnet.net>
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