A094683: Juggler sequence

Description Usage Arguments Value Examples

Description

Under OEIS A094683, a Juggler sequence is an integer-valued sequence that starts with a nonnegative number iteratively follows that J_{k+1}=floor(J_k^{1/2}) if J_k is even, or J_{k+1}=floor(J_k^{3/2}) if odd. No first 6 terms are given since it all depends on the starting value.

Usage

1
Juggler(start, gmp = TRUE)

Arguments

start

the starting nonnegative integer.

gmp

a logical; TRUE to use large number representation, FALSE otherwise.

Value

a vector recording the sequence of unknown length a priori.

Examples

1
2
## let's start from 9 and show the sequence
print(Juggler(9))

kisungyou/Zseq documentation built on Feb. 4, 2018, 12:02 a.m.