Description Usage Arguments Value References Examples
A sequence which describes its previous term.
1 | look_and_say(n = 1, seed = 1, return_all = FALSE)
|
n |
The number of iteration steps. |
seed |
The starting sequence. |
return_all |
Logical. Should all steps be returned? Defaults to
|
The final iteration of the sequence as a vector if return_all
is FALSE
, otherwise a list of all steps of the sequence.
This sequence in the On-Line Encyclopedia of Integer Sequences: A005150.
The Numberphile video featuring John Conway and Brady Haran: Look-and-Say Numbers (feat John Conway).
1 | look_and_say(seed = 1, n = 7, return_all = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.