% https://oeis.org/A259444 % a(1)=2. a(n) = smallest number > a(n-1) such that for all m,r -1, get_list(N,L1), reverse(L1,L2) then io.format("A259444(%d, [", [i(N)], !IO), io.write_list(L2, ",", io.write_int, !IO), io.write_string("])\n", !IO), main(!IO) else io.format("That isn't a number or result undefined\n", [], !IO), main(!IO) ). :- end_module 'A259444'.