Juggler.Nsteps {Zseq}R Documentation

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, gmp = TRUE)

Arguments

n

the number of first n entries from the sequence.

gmp

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

Value

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

See Also

Juggler

Examples

## generate first 10 numbers of steps for Juggler sequences
print(Juggler.Nsteps(10))


[Package Zseq version 0.2.1 Index]