English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

x y
-------
0 0
1 1
2 3
3 7
4 15
5 31
6 63

The Domain and Range appear to be all positives.

As a bonus, can anyone tell me where I got this sequence??

2006-06-25 02:48:24 · 10 answers · asked by Hyzakyt 4 in Science & Mathematics Mathematics

Ok, I'm slightly embarrased that I didn't see the pattern. I spent some time trying to come up with an equation by calculating a couple of points. Anyone know of a way to do that?

btw, the sequence comes from the Tower of Hanoi puzzle: x is the number of discs, and y is the fewest number of moves needed to complete the puzzle.

10 points still available if anyone can derive an equation from the numbered pairs only, like I was trying to do originally.

2006-06-25 15:38:02 · update #1

10 answers

This is the Gaussian binomial coefficient [n,1] for q=2.

Greetings from The On-Line Encyclopedia of Integer Sequences!

2006-07-07 00:09:02 · answer #1 · answered by IT 4 · 0 0

3

2006-07-07 00:11:40 · answer #2 · answered by Izen G 5 · 0 0

You are always adding the next power of 2 to the previous number.

Power of 2: 1, 2, 4, 8, 16, 32...

0 + 1 = 1
1 + 2 = 3
3 + 4 = 7
7 + 8 = 15
15 + 16 = 31
etc

2006-06-25 09:55:06 · answer #3 · answered by John R 1 · 0 0

y = (2^x) - 1

2^0 - 1 = 1 - 1 = 0
2^1 - 1 = 2 - 1 = 1
2^2 - 1 = 4 - 1 = 3
2^3 - 1 = 8 - 1 = 7
2^4 - 1 = 16 - 1 = 15
2^5 - 1 = 32 - 1 = 31
2^6 - 1 = 64 - 1 = 63

2006-06-25 13:10:37 · answer #4 · answered by Sherman81 6 · 0 0

0 0
1 1
2 3--->1x2+1=3
3 7 --->3x2+1=7
4 15--->7x2+1=15
5 31--->15x2+1=31
6 63---->31x2+1=63

2006-06-25 09:55:29 · answer #5 · answered by raven 3 · 0 0

surely it's just a simple progression where the left column increases by 1 and the right = the left added to the sucessive right column numbers so in the next lines
7 117
8 245

2006-06-25 09:56:28 · answer #6 · answered by Anonymous · 0 0

For a given x, y describes the largest number expressible in binary using x digits.

2006-06-25 18:44:36 · answer #7 · answered by Anonymous · 0 0

y = (2^x) - 1

I came up with it by noticing the pattern: the powers of two (for each exponent 'x') are all 1 greater than your given corresponding 'y' values.

2006-06-25 09:52:50 · answer #8 · answered by wheezer_april_4th_1966 7 · 0 0

x = xsub(x-1) + 1
y = sum(ysub1..ysubx) + x

Came up with it by observing pattern in numbers.

No clue on bonus; assuming you made it up?

2006-06-25 09:56:16 · answer #9 · answered by ... 4 · 0 0

xyy(n)-y(n+1)2^(x-1)
00
1111
2322
3744
41588
5311616
6633232

y(n+1)=y(n)+2^(n-1)

2006-07-02 21:10:20 · answer #10 · answered by Curly 6 · 0 0

fedest.com, questions and answers