Linked Questions

23
votes
25answers
9k views

Look and say sequence [duplicate]

The look and say sequence is a basic form of run length encoding. The sequence starts with the number 1 and each additional number encodes the number of digits that are repeated before each digit ...
14
votes
15answers
1k views

Point-free look and say sequence [duplicate]

You are too make a program that take an integer as the input and outputs the first what ever that number was of the look and say sequence. For example: ...
0
votes
0answers
39 views

Describe a number with numbers (Looping) [duplicate]

Overview Related. When you have a very long number, you would like to say how many of a specific digits are there rather than the number itself. You may want to repeat this multiple times. Write a ...
67
votes
21answers
6k views

Tips for golfing in R

I'm looking for tips for golfing in the R statistical language. R is perhaps an unconventional choice for Golf. However, it does certain things very compactly (sequences, randomness, vectors, and ...
18
votes
22answers
2k views

Sort by what the digit pairs describe

Given a positive integer, we can form a new number that's described by its digits taken pairwise (with a leading 0 added for numbers with odd number of digits). For eg.: 1234 can be read as one 2, ...
13
votes
19answers
1k views

Find the k-th order summary of a number

Background The summary of a non-negative integer \$n\$ is the concatenation of all digits that appear in \$n\$ in increasing order, with each digit being preceded by the number of times it appears in \...
25
votes
7answers
2k views

Inverse Look-and-Say

Background The Look and Say Sequence is built up by reading off the digits of previous entries in the sequence, counting the number of digits in groups of the same digit. For example: ...
16
votes
7answers
670 views

One 1, Two 1's, One 2 One 1

Challenge: Create a program that takes input of a positive non-zero integer and outputs the 4 next numbers in the sequence described below. Note: Checking if the input is actually a positive non-...
14
votes
7answers
2k views

A047841: Autobiographical numbers

Definition Here is the process to describe a number: For each number from 0 to 9 that is present in the number: Write down the ...
0
votes
0answers
64 views

Say What You Saw [duplicate]

Background The background comes from this related challenge. Thanks, @HeyLlama! The "Look and say" or "Say what you see" sequence is a series of numbers where each describes the last. 1 11 (one one)...