Numbers in a sequence

Level 2

Take a sequence of numbers, such as [ 1 , 1 , 2 , 2 , 1 , 1 , 1 , 2 , 1 , 1 ] [1, 1, 2, 2, 1, 1, 1, 2, 1, 1] .

Create another sequence using a given sequence by following these rules: whenever a number in the sequence is "alone" (meaning that a copy of that number isn't 1 1 digit behind or in front of it), then replace it with a 1 1 (and keep it as a 1 1 if it was already a 1 1 ). Whenever a number in the sequence can be found 1 1 digit behind or in front of it (but there are no more copies of that same number "attached" to it), then replace the two numbers with a 2 2 . To generalize the rule, whenever a "cluster" of x x of the same number in a row is in the sequence, replace that cluster with x x . Apply this rule to every "cluster" in the sequence.

If you apply these rules to the sequence mentioned above, you get [ 1 , 1 , 2 , 2 , 1 , 1 , 1 , 2 , 1 , 1 ] [1, 1, 2, 2, 1, 1, 1, 2, 1, 1] , then [ 2 , 2 , 3 , 1 , 2 ] [2, 2, 3, 1, 2] , then [ 2 , 1 , 1 , 1 ] [2, 1, 1, 1] , then [ 1 , 3 ] [1, 3] , then [ 1 , 1 ] [1, 1] , then [ 2 ] [2] , and finally, [ 1 ] [1] . It takes a total of 6 6 steps to get to 1 1 (the starting sequence doesn't count as a step), at which point, if you apply the rule, it just stays at 1 1 .

Other than 1 1 , are there any sequences of numbers that, when applied the rules above, give itself? And, if you divide the number of steps it takes to get a sequence to 1 1 by the number of the number of terms in the sequence, what is the largest defined value this number could be?

Yes, 1 1 Yes, 3 2 \frac { 3 }{ 2 } Yes, 3 π 5 \frac { 3\pi }{ 5 } Yes, \infty No, 1 1 No, 3 2 \frac { 3 }{ 2 } No, 3 π 5 \frac { 3\pi }{ 5 } No, \infty

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Louis Ullman
Mar 2, 2018

Part 1: At first glance, it might seem impossible for a sequence other than [ 1 ] [1] to give itself after applying the rules. However, there actually is a fairly simple example of another sequence that has this property. Take the infinite sequence [ 1 , 2 , 2 , 3 , 3 , 4 , 4 , 4 , 5 , 5 , 5 , 6 , 6 , 6 , 6... ] [1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6...] (I never said that infinite sequences weren't allowed!). This sequence is constructed by taking the sequence [ 1 , 2 , 3 , 4 , 5 , 6... ] [1, 2, 3, 4, 5, 6...] , then creating clusters of slowly increasing size to make the sequence give itself when the rules are applied. So, yes , there exists another sequence that gives itself when the rules are applied.

Part 2: It would be common sense that when the rules are applied to a sequence, it can't grow larger. To maximize the value of the fraction, we want to minimize the number of terms in the sequence while maximizing the number of steps it takes to get to 1. An easy way to see what the largest value might be would be to work backwards. The way we can do this is by starting at 1 and applying the rules in reverse while keeping track of how many steps it would take to get back to 1. [ S e q u e n c e : S t e p s : T e r m s : R a t i o : 1 0 1 0 / 1 2 1 1 1 / 1 1 1 2 2 2 / 2 1 2 3 2 3 / 2 2 1 1 4 3 4 / 3 1 1 2 1 5 4 5 / 4 1 2 1 1 2 6 5 6 / 5 1 2 2 1 2 1 1 7 7 7 / 7 1 2 2 1 1 2 1 1 2 1 8 10 8 / 10 1 2 2 1 1 2 1 2 2 1 2 1 1 2 9 14 9 / 14 ] \begin{bmatrix} Sequence: & Steps: & Terms: & Ratio: \\ 1 & 0 & 1 & { 0 }/{ 1 } \\ 2 & 1 & 1 & { 1 }/{ 1 } \\ 1-1 & 2 & 2 & { 2 }/{ 2 } \\ 1-2 & 3 & 2 & { 3 }/{ 2 } \\ 2-1-1 & 4 & 3 & { 4 }/{ 3 } \\ 1-1-2-1 & 5 & 4 & { 5 }/{ 4 } \\ 1-2-1-1-2 & 6 & 5 & { 6 }/{ 5 } \\ 1-2-2-1-2-1-1 & 7 & 7 & { 7 }/{ 7 } \\ 1-2-2-1-1-2-1-1-2-1 & 8 & 10 & 8/10 \\ 1-2-2-1-1-2-1-2-2-1-2-1-1-2 & 9 & 14 & { 9 }/{ 14 } \end{bmatrix} By step 8, it's very easy to see why 3 2 \boxed { \frac { 3 }{ 2 } } is the largest possible value. Of course, if you take a specific infinite sequence (such as the digits of pi), no matter how many times you apply the rules, you'll never get to 1. This would mean that the ratio was \frac{\infty}{\infty} , but since \frac{\infty}{\infty} is undefined, that value can be ignored.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...