Hofstadter Figure-Figure sequences: Difference between revisions

Line 515:
% check the correctness of the list
( (L4 = [1|_], last(L4, 1000), length(L4, 1000)) -> writeln(ok); writeln(ko)),
% needed,to becauseremove all thepending constraints ffr and ffs are output at the end of the program
fail.
% so the result can't be seen on the screen !
read(_X).
</lang>
Output for second task
<pre> ?- hofstadter.
ok
false.
|:</pre>
 
=={{header|Python}}==
<lang python>def ffr(n):
Anonymous user