Hofstadter Figure-Figure sequences: Difference between revisions

m (→‎{{header|PL/I}}: correct lang tags)
Line 2,004:
index = s(n-1)+1
Do
'Add to s if the current index is neithernot in the r or sarray.
If r.IndexOf(index,0) = -1 And s.IndexOf(index,0) = -1 Then
s.Add index
Exit Do
Anonymous user