Jump to content

Recaman's sequence: Difference between revisions

(→‎{{header|jq}}: second solution)
Line 1,400:
select(.emit) | .emit);
 
# Input: an integer, $required
# Outputs: thea numberstream of items that must be generated in order that all thenon-negative integers
# Output: the index of the item in the stream s at which the stream up to and including
# that item includes all integers in the closed interval [0 .. $required] be found.
#
def covers(s):
2,497

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.