NAME
recaman - generate Recamán's sequence in various formats
USAGE
recaman [n]
Will generate the first n
numbers of the sequence. The default is the first 71 numbers.
recaman --help
recaman --man
Will print out help messages.
You can also change the mode
to output in different styles.
recaman --mode check
recaman --mode nl 100
recaman --mode nth 1000
recaman --mode max 10000000
- default
-
Prints out the requested numbers in the sequence on one line seperated by commas.
- check
-
Prints out the first 71 numbers in the sequence plus, immediately, underneath, the same 71 numbers from a different source.
- newline or nl
-
Prints out the requested numbers seperate by newlines. This prints each number out as it calculates it so it uses less memory for large sequences.
- nth
-
Prints out only the nth number.
- max
-
Prints out the largest number seen when calculating the nth number.
AUTHOR
Simon Wistow <simon@thegestalt.org>