Learn R Programming

Zseq (version 0.1.1)

Juggler.Nsteps: Number of steps for Juggler sequence

Description

Under OEIS A007320, a Number of steps for Juggler sequence literally counts the number of steps required for a sequence that starts from n. First 6 terms are 0, 1, 6, 2, 5, 2 that n starting from 0 is conventional choice. Note that when it counts number of steps, not the length of the sequence including the last 1.

Usage

Juggler.Nsteps(n, Rmpfr = TRUE, PrecisionBits = 496)

Arguments

n

the number of first n entries from the sequence.

Rmpfr

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

PrecisionBits

a positive integer for precision bits larger than 2.

Value

a vector of length n containing first entries from the sequence.

See Also

Juggler

Examples

Run this code
# NOT RUN {
## generate first 10 numbers of steps for Juggler sequences
first10 = Juggler.Nsteps(10)

## print without trailing 0's.
print(first10, drop0trailing = TRUE)

# }

Run the code above in your browser using DataLab