Juggler {Zseq} | R Documentation |
Juggler sequence
Description
Under OEIS A094683, a Juggler sequence is an integer-valued
sequence that starts with a nonnegative number iteratively follows that if
is even, or
if odd.
No first 6 terms are given since it all depends on the starting value.
Usage
Juggler(start, gmp = TRUE)
Arguments
start |
the starting nonnegative integer. |
gmp |
a logical; |
Value
a vector recording the sequence of unknown length a priori.
Examples
## let's start from 9 and show the sequence
print(Juggler(9))
[Package Zseq version 0.2.1 Index]