Jump to content
BrainDen.com - Brain Teasers
  • 0


superprismatic
 Share

Question

The numbers 1, Y, and Y^2, Y a real

number, are used as the basis for a

sequence in which every value after the

first three is the average of the

previous three numbers. This is

continued indefinitely and the sequence

is found to converge to the value 321.

Find all possible values for Y.

SUPERPRISMATIC NOTE: This is much more

of a challenge for the programming

solvers out there than Penney Puzzle

#7 from yesterday was!

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

  • 0

How is this one different from the earlier question? The only difference I noticed was Y being addressed as "a real number" rather than "a positive integer" in the previous case. If the answer to the previous case was 25, why would it be any different now?

I'm not a programmer so may be I am missing something in the question!!

Link to comment
Share on other sites

  • 0

How is this one different from the earlier question? The only difference I noticed was Y being addressed as "a real number" rather than "a positive integer" in the previous case. If the answer to the previous case was 25, why would it be any different now?

I'm not a programmer so may be I am missing something in the question!!

There is only one answer in the positive integers. But there may be more in the reals.

In fact, there is at least one other.

Link to comment
Share on other sites

  • 0

There is only one answer in the positive integers. But there may be more in the reals.

In fact, there is at least one other.

Ah, silly me! Of course there could (read would) be value < 0 which would satisy this condition.

I have a hunch that the negative value should be close to the positive value, the only question is how close!

But the dificult part is that as easy as my previous method for part 1 was, it won't come in handy if the second solution is not an integer!

Edited by DeeGee
Link to comment
Share on other sites

  • 0

By that remark, I guess you're intrigued by this little problem. I never thought about it, but I guess if the convergent value were something like 321+87i, there may be some fruitful puzzling there! What next? Quaternions?

Y could be -25.666666....

How did you solve? Was it through a program or mathematical analysis?

Link to comment
Share on other sites

  • 0

How did you solve? Was it through a program or mathematical analysis?

I got as far as seeing:

nth term = (ax^2 + bx + c)/d

a = x^2 coeef: 1 4 16 37 121

b = x coeef: 1 4 7 28 85

c = addend: 1 1 4 16 37

d = divisor: 3 9 27 81 243

divisor = 3^n

coeeficients: nth coeeficient = 9 * (n-3) coefficent + 3*(n-2) coeefcient + (n-1) coeeficent.

Then I threw my hands up in the air,

and went back to work B))

Link to comment
Share on other sites

  • 0

I got as far as seeing:

nth term = (ax^2 + bx + c)/d

a = x^2 coeef: 1 4 16 37 121

b = x coeef: 1 4 7 28 85

c = addend: 1 1 4 16 37

d = divisor: 3 9 27 81 243

divisor = 3^n

coeeficients: nth coeeficient = 9 * (n-3) coefficent + 3*(n-2) coeefcient + (n-1) coeeficent.

Then I threw my hands up in the air,

and went back to work B))

Same here! I also couldn't find any general expression for the coefficients of nth term (after the first three).

Another observation was that a+b+c of nth term = 3n but that was all

Edited by DeeGee
Link to comment
Share on other sites

  • 0

Same here! I also couldn't find any general expression for the coefficients of nth term (after the first three).

Another observation was that a+b+c of nth term = 3n but that was all

One other aha moment....isn't this a form of a Cauchy sequence????

(I wouldn't know how that could help...and it's just sitting at the back of my brain)

(Edit: Add parenthetical)

Edited by tpaxatb
Link to comment
Share on other sites

  • 0

How did you solve? Was it through a program or mathematical analysis?

spreadsheet ohmy.gif I'm working on a mathematical analysis to make it more rigorous. From what I've seen (and I can tell others have seen it too), the general form of the converging function is f(n) = [a(n) + b(n)Y + c(n)Y2]/d(n), where a(n), b(n), c(n), and d(n) are distinct numerical sequences in their own right. The patterns become pretty regular for n>5, so I was thinking that if I could take limits on a(n), b(n), c(n), and d(n) as n approached infinity, I might be able to set that limit equal to 321 and directly solve for Y. Then you would obtain the solution from last time and the one I just posted, and possibly any complex solutions that might exist. But I've yet to define each of these sequences in a simple manner - just haven't spent the time on it yet. Obviously, d(n) is rather simple: d(n) = 3n-3. And a(n) = c(n-1), so there's some simplification there. Just need to work it out...

Link to comment
Share on other sites

  • 0

Well, here's something interesting:

a(n), b(n), c(n), and d(n) can be approximated by exponential functions of the form f(n) = AeBx. So you can approximate that:

a(n) = 0.006187 e 1.0985n

b(n) = 0.01226 e 1.0989n

c(n) = 0.01858 e 1.0985n

d(n) = e 1.0986n

I did this using regression analysis after taking the natural log of each of the numbers in the various series up to n = 35. The R2 value was 0.999999 for a, b, & c, and 1.0 for d. Noticing that the exponents were all very close to 1.0986n, I decided to check what happens if I removed some of the lower values of n from the equation. As I suspected, the exponents eventually all became 1.0986n (1.0986 being the natural log of 3). So, we have 4 parallel functions when they are all graphed on a semi-logarithmic scale. I'm thinking the answer somehow has to do with the intercepts of the various equations, because the slopes are all the same. But I am not quite there yet.

Link to comment
Share on other sites

  • 0

A correction to my earlier post, which I can no longer edit...

a(n), b(n), c(n), and d(n) can be approximated by exponential functions of the form f(n) = AeBx. So you can approximate that:

a(n) = 0.16666 e 1.0986n

b(n) = 0.33333 e 1.0986n

c(n) = 0.5 e 1.0986n

d(n) = e 1.0986n

I realized that I had messed up one of the calculations, and it looks much prettier now. I still think the answer lies with the intercepts of these functions.

And it does...

If you set up an equation:

.167 + .333Y + .5Y2 = 321, then Y = 25 or -25.666 will solve.

Edited by HoustonHokie
Link to comment
Share on other sites

  • 0

right but i dont know y

so at first glance it look like (when i say y= i mean the coeff)

y2= summation( i 1->inf) 1/3i=1/2

y=(summation( i 1->inf)1/3i)-1/6=1/3 (its 1/3 starts off being considered only twice to y2 3)

integer=(summation i 1->inf)1/3i-1/3=1/6 (it starts off being considered only once to y23)

now on second glance there are a couple of logic jumps but then i thought of it this way and it works

now at start y^2 is consider 3 times for ever 2 y and 1 int. So after averageing this number with other averages of this number y would be 2/3 as big and int would be 1/3 as big.

the y2=1/2 I cant really prove but it logically makes sense(at least to me)

i tried recursion but my brain hurts currently, so this is the best i got now

Link to comment
Share on other sites

  • 0

Sorry, I didn't do the table formatting right, I'll have to work on that.

Using my noggin' and a spreadsheet, I figured it out. Here's the generic sequence:

S0 = c

S1 = x

S2 = x^2

S3 = (x^2 + x + 1)/3

S4 = ( (x^2 + x + 1)/3 + x^2 + x )/3

= ( (4x^2 + 4x + 1)/3 )/3

If we rewrite this as

S4 = ( Aix^2 + Bix^2 + C ) / D

then watch the pattern of A,B,C,D, we get a table like this:

S Ai Bi Ci Di

0 1

1 1

2 1

3 1 1 1 3

4 4 4 1 9

5 16 7 4 27

6 37 28 16 81

7 121 85 37 243

Note that each Ai = A[i-1] + 3A[i-2] + 9A[i-3], same for Bi and Ci.

Now compute Bi/Ai, Ci/Ai, and Di/Ai:

S Ai Bi Ci Di b/a c/a d/a

0 1

1 1

2 1

3 1 1 1 3 1 1 3

4 4 4 1 9 1 0.25 2.25

5 16 7 4 27 0.438 0.250 1.688

6 37 28 16 81 0.757 0.432 2.189

7 121 85 37 243 0.702 0.306 2.008

where the ratios converge pretty quickly to this:

2/3 1/3 2

With T = target,

T = (x^2 + 2x/3 + 1/3)/2

and rearranging:

3y^2 + 2y - (6*T-1) = 0

For T = 321, this yields y = (25,-25-2/3).

Edited by Quantum.Mechanic
Link to comment
Share on other sites

  • 0

Sorry, I didn't do the table formatting right, I'll have to work on that.

Using my noggin' and a spreadsheet, I figured it out. Here's the generic sequence:

S0 = c

S1 = x

S2 = x^2

S3 = (x^2 + x + 1)/3

S4 = ( (x^2 + x + 1)/3 + x^2 + x )/3

= ( (4x^2 + 4x + 1)/3 )/3

If we rewrite this as

S4 = ( Aix^2 + Bix^2 + C ) / D

then watch the pattern of A,B,C,D, we get a table like this:

S Ai Bi Ci Di

0 1

1 1

2 1

3 1 1 1 3

4 4 4 1 9

5 16 7 4 27

6 37 28 16 81

7 121 85 37 243

Note that each Ai = A[i-1] + 3A[i-2] + 9A[i-3], same for Bi and Ci.

Now compute Bi/Ai, Ci/Ai, and Di/Ai:

S Ai Bi Ci Di b/a c/a d/a

0 1

1 1

2 1

3 1 1 1 3 1 1 3

4 4 4 1 9 1 0.25 2.25

5 16 7 4 27 0.438 0.250 1.688

6 37 28 16 81 0.757 0.432 2.189

7 121 85 37 243 0.702 0.306 2.008

where the ratios converge pretty quickly to this:

2/3 1/3 2

With T = target,

T = (x^2 + 2x/3 + 1/3)/2

and rearranging:

3y^2 + 2y - (6*T-1) = 0

For T = 321, this yields y = (25,-25-2/3).

Well, actually nothing ever actually converges until way, way out there at infinity. So, you are actually relying on a guess that this thing converges to (1+2*x+3*x^2)/6. If it differed by a small amount from this, the solutions may have been 25.00001, -25.6666678 say.

Edited by superprismatic
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...