[seqfan] Alexandre's loops

Eric Angelini Eric.Angelini at kntv.be
Mon Mar 28 15:22:21 CEST 2011


Hello SeqFans,

Start with a word or a name - here "ALEXANDRE";
Write on top of each letter its rank in the alphabet:
     1 12 5 24 1 14 4 18 5
     A  L E  X A  N D  R E
Start with the first integer (here '1'), add or subtract
the next integer ('12') in order to keep the result as close
as possible to zero - but never under zero (we'll do here
1+12=13 as we cannot do 1-12=-11):
     1 12 5 24  1 14  4 18  5
     A  L E  X  A  N  D  R  E
 S = 1,13,
Proceed like this for the full word/name:
     1+12-5+24 -1+14 -4+18 -5
     A  L E  X  A  N  D  R  E
 S = 1,13,8,32,31,17,13,31,26
Duplicate the word/name and compute S accordingly - until
it appears that S has entered a loop:
     1+12-5+24 -1+14 -4+18 -5 -1-12-5+24 -1-14 -4+18 -5 -1
     A  L E  X  A  N  D  R  E  A  L E  X  A  N  D  R  E  A...
 S = 1,13,8,32,31,17,13,31,26,25,13,8,32,33,17,13,31,26,25, ...
                        loop -->[*************************]
The next example will raise a question (more here):
http://goo.gl/zMyTR
Best,
É.




More information about the SeqFan mailing list