Date: 26/12/2022 20:37:39
From: KJW
ID: 1971931
Subject: 1, 2, 4, 8, 16, ...

A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

Reply Quote

Date: 26/12/2022 21:33:30
From: The Rev Dodgson
ID: 1971952
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

OK, so getting from 16 to 31 is pretty simple and straightforward, once you know how to do it.

Hadn’t seen that before (that I remember!)

Reply Quote

Date: 27/12/2022 00:49:59
From: SCIENCE
ID: 1971994
Subject: re: 1, 2, 4, 8, 16, ...

we’re sure an argument could be had as to what an appropriate measure of “simple” is but there may be something to do with optimality and being the simplest

Reply Quote

Date: 27/12/2022 03:40:35
From: mollwollfumble
ID: 1972011
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

Yep. I know both answers. The answer 31 also comes from a polynomial fit.

If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

I use something like this in my Devil’s Puzzle Book, where I ask what is the next number in the sequence 1,2,3,4,5,…

Reply Quote

Date: 27/12/2022 10:00:12
From: The Rev Dodgson
ID: 1972044
Subject: re: 1, 2, 4, 8, 16, ...

mollwollfumble said:


KJW said:

A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

Yep. I know both answers. The answer 31 also comes from a polynomial fit.

If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

I use something like this in my Devil’s Puzzle Book, where I ask what is the next number in the sequence 1,2,3,4,5,…

So if we have:
x = 1,2,3,…n
and
y = 1, 2, 4,…2^(n-1)

and we fit a polynomial of order n-1 to those numbers, it seems that the next number in the sequence is always 2^n-1.

I’ll leave it to someone else to prove that :)

Reply Quote

Date: 27/12/2022 11:15:53
From: mollwollfumble
ID: 1972064
Subject: re: 1, 2, 4, 8, 16, ...

There’s a very easy way to continue the sequence
1,2,4,8,16,31…
It’s called “divided differences”
Take the difference between each pair of numbers, and repeat.

1,2,4,8,16,31
1,2,4,8,15
1,2,4,7
1,2,3

Then extend the sequence and reverse the process.

1,2,3,4,5,6,…
1,2,4,7,11,16,22,…
1,2,4,8,15,26,42,64,…
1,2,4,8,16,31,57,99,163,…

Back in the dim distant past I found it very useful in answering certain questions in IQ tests.

Reply Quote

Date: 27/12/2022 11:16:46
From: SCIENCE
ID: 1972065
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


mollwollfumble said:

KJW said:

A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

Yep. I know both answers. The answer 31 also comes from a polynomial fit.

If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

I use something like this in my Devil’s Puzzle Book, where I ask what is the next number in the sequence 1,2,3,4,5,…

So if we have:
x = 1,2,3,…n
and
y = 1, 2, 4,…2^(n-1)

and we fit a polynomial of order n-1 to those numbers, it seems that the next number in the sequence is always 2^n-1.

I’ll leave it to someone else to prove that :)

so you all agree that doubling each time until proven otherwise seems to be the simplest unifying

Reply Quote

Date: 27/12/2022 11:16:47
From: SCIENCE
ID: 1972066
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


mollwollfumble said:

KJW said:

A few days ago, I caught the end of a part of the TV program “QI” which dealt with the sequence: 1, 2, 4, 8, 16, …

As I didn’t see most of it, I can only assume that they asked what the next number in the sequence is. Naturally, in typical QI style, the incorrect answer is 32. The “correct” answer is 31. This answer is based on the sequence given by dividing a circle into areas. The host pointed out that there is insufficient information to provide the next number in this sequence and that the correct answer depends on the question asked.

Yep. I know both answers. The answer 31 also comes from a polynomial fit.

If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

I use something like this in my Devil’s Puzzle Book, where I ask what is the next number in the sequence 1,2,3,4,5,…

So if we have:
x = 1,2,3,…n
and
y = 1, 2, 4,…2^(n-1)

and we fit a polynomial of order n-1 to those numbers, it seems that the next number in the sequence is always 2^n-1.

I’ll leave it to someone else to prove that :)

so you all agree that doubling each time until proven otherwise seems to be the simplest unifying

Reply Quote

Date: 27/12/2022 11:17:03
From: SCIENCE
ID: 1972067
Subject: re: 1, 2, 4, 8, 16, ...

twice

Reply Quote

Date: 27/12/2022 11:19:45
From: mollwollfumble
ID: 1972070
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

so you all agree that doubling each time until proven otherwise seems to be the simplest unifying

Nope. See my post above.

Reply Quote

Date: 27/12/2022 11:34:09
From: mollwollfumble
ID: 1972079
Subject: re: 1, 2, 4, 8, 16, ...

mollwollfumble said:


There’s a very easy way to continue the sequence
1,2,4,8,16,31…
It’s called “divided differences”
Take the difference between each pair of numbers, and repeat.

1,2,4,8,16,31
1,2,4,8,15
1,2,4,7
1,2,3

Then extend the sequence and reverse the process.

1,2,3,4,5,6,…
1,2,4,7,11,16,22,…
1,2,4,8,15,26,42,64,…
1,2,4,8,16,31,57,99,163,…

Back in the dim distant past I found it very useful in answering certain questions in IQ tests.

That’s weird. Powers of 2 appear in the polynomial sequences as well.
As in.
1,2,.,4
1,2,4,.,.,16
1,2,4,8,.,.,.,64
1,2,4,8,16,.,.,.,.,256
Etc.

Reply Quote

Date: 27/12/2022 11:44:37
From: SCIENCE
ID: 1972085
Subject: re: 1, 2, 4, 8, 16, ...

mollwollfumble said:

SCIENCE said:

so you all agree that doubling each time until proven otherwise seems to be the simplest unifying

Nope. See my post above.

seems more complicated than “ *2 “ but hey not everyone’s a rabbit

Reply Quote

Date: 27/12/2022 12:45:27
From: The Rev Dodgson
ID: 1972103
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

mollwollfumble said:

SCIENCE said:

so you all agree that doubling each time until proven otherwise seems to be the simplest unifying

Nope. See my post above.

seems more complicated than “ *2 “ but hey not everyone’s a rabbit

OK, but we are not looking for the simplest one.

We are looking for any method that has a reasonably simple and consistent procedure, but gives a different answer to the simplest one.

This is considered to be qi on QI, and who are we to argue with them?

Reply Quote

Date: 27/12/2022 13:19:27
From: SCIENCE
ID: 1972114
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:

SCIENCE said:

mollwollfumble said:

Nope. See my post above.

seems more complicated than “ *2 “ but hey not everyone’s a rabbit

OK, but we are not looking for the simplest one.

We are looking for any method that has a reasonably simple and consistent procedure, but gives a different answer to the simplest one.

This is considered to be qi on QI, and who are we to argue with them?

no worries they’ve got it sorted*

https://oeis.org/

*: not sure about the sort order though

Reply Quote

Date: 27/12/2022 13:26:08
From: SCIENCE
ID: 1972117
Subject: re: 1, 2, 4, 8, 16, ...

like

Number of divisors of n!.

(offset 1) a(0) = 1, a(n) = sum of digits of all previous terms.

a(n) = Sum_{k=0..5} C(n,k). Number of different resistances that can be obtained by combining n one-ohm resistors. a(0) = 1; thereafter a(n) is obtained by applying the “delete multiple digits” map m -> A320485 to 2*a(n-1). The number of odd partitions of consecutive odd integers. Number of configurations of the sliding block 8-puzzle that require a minimum of n moves to be reached, starting with the empty square in one of the corners.

and that’s just the first 2 pages

Reply Quote

Date: 27/12/2022 13:26:57
From: SCIENCE
ID: 1972118
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

like

Number of divisors of n!.

(offset 1) a(0) = 1, a(n) = sum of digits of all previous terms.

a(n) = Sum_{k=0..5} C(n,k). Number of different resistances that can be obtained by combining n one-ohm resistors. a(0) = 1; thereafter a(n) is obtained by applying the “delete multiple digits” map m -> A320485 to 2*a(n-1). The number of odd partitions of consecutive odd integers. Number of configurations of the sliding block 8-puzzle that require a minimum of n moves to be reached, starting with the empty square in one of the corners.

and that’s just the first 2 pages

like

Number of divisors of n!.

(offset 1) a(0) = 1, a(n) = sum of digits of all previous terms. 

 a(n) = Sum_{k=0..5} C(n,k). 

 Number of different resistances that can be obtained by combining n one-ohm resistors. 

 a(0) = 1; thereafter a(n) is obtained by applying the "delete multiple digits" map m -> A320485(m) to 2*a(n-1). 

 The number of odd partitions of consecutive odd integers. 

 Number of configurations of the sliding block 8-puzzle that require a minimum of n moves to be reached, starting with the empty square in one of the corners. 

and that's just the first 2 pages
Reply Quote

Date: 27/12/2022 13:29:43
From: roughbarked
ID: 1972120
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:


SCIENCE said:

like

Number of divisors of n!.

(offset 1) a(0) = 1, a(n) = sum of digits of all previous terms.

a(n) = Sum_{k=0..5} C(n,k). Number of different resistances that can be obtained by combining n one-ohm resistors. a(0) = 1; thereafter a(n) is obtained by applying the “delete multiple digits” map m -> A320485 to 2*a(n-1). The number of odd partitions of consecutive odd integers. Number of configurations of the sliding block 8-puzzle that require a minimum of n moves to be reached, starting with the empty square in one of the corners.

and that’s just the first 2 pages

like

Number of divisors of n!.

(offset 1) a(0) = 1, a(n) = sum of digits of all previous terms. 

 a(n) = Sum_{k=0..5} C(n,k). 

 Number of different resistances that can be obtained by combining n one-ohm resistors. 

 a(0) = 1; thereafter a(n) is obtained by applying the "delete multiple digits" map m -> A320485(m) to 2*a(n-1). 

 The number of odd partitions of consecutive odd integers. 

 Number of configurations of the sliding block 8-puzzle that require a minimum of n moves to be reached, starting with the empty square in one of the corners. 

and that's just the first 2 pages

and the beat goes on

Reply Quote

Date: 27/12/2022 13:31:06
From: The Rev Dodgson
ID: 1972121
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

The Rev Dodgson said:

SCIENCE said:

seems more complicated than “ *2 “ but hey not everyone’s a rabbit

OK, but we are not looking for the simplest one.

We are looking for any method that has a reasonably simple and consistent procedure, but gives a different answer to the simplest one.

This is considered to be qi on QI, and who are we to argue with them?

no worries they’ve got it sorted*

https://oeis.org/

*: not sure about the sort order though

I might have missed it, because I haven’t got the Latin for following all this stuff, but they didn’t seem to have moll’s sequence there.

Reply Quote

Date: 27/12/2022 13:32:23
From: roughbarked
ID: 1972123
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


SCIENCE said:

The Rev Dodgson said:

OK, but we are not looking for the simplest one.

We are looking for any method that has a reasonably simple and consistent procedure, but gives a different answer to the simplest one.

This is considered to be qi on QI, and who are we to argue with them?

no worries they’ve got it sorted*

https://oeis.org/

*: not sure about the sort order though

I might have missed it, because I haven’t got the Latin for following all this stuff, but they didn’t seem to have moll’s sequence there.

He might have confused QI for IQ?

Reply Quote

Date: 27/12/2022 13:34:42
From: The Rev Dodgson
ID: 1972125
Subject: re: 1, 2, 4, 8, 16, ...

roughbarked said:


The Rev Dodgson said:

SCIENCE said:

no worries they’ve got it sorted*

https://oeis.org/

*: not sure about the sort order though

I might have missed it, because I haven’t got the Latin for following all this stuff, but they didn’t seem to have moll’s sequence there.

He might have confused QI for IQ?

I think both of the people who have sat at the top table on QI have a pretty high IQ.

Some of the contestants perhaps not so much :)

Reply Quote

Date: 27/12/2022 13:35:59
From: roughbarked
ID: 1972126
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


roughbarked said:

The Rev Dodgson said:

I might have missed it, because I haven’t got the Latin for following all this stuff, but they didn’t seem to have moll’s sequence there.

He might have confused QI for IQ?

I think both of the people who have sat at the top table on QI have a pretty high IQ.

Some of the contestants perhaps not so much :)

From this I am sure you garnered my content.

Reply Quote

Date: 27/12/2022 13:39:42
From: The Rev Dodgson
ID: 1972129
Subject: re: 1, 2, 4, 8, 16, ...

roughbarked said:


The Rev Dodgson said:

roughbarked said:

He might have confused QI for IQ?

I think both of the people who have sat at the top table on QI have a pretty high IQ.

Some of the contestants perhaps not so much :)

From this I am sure you garnered my content.

No, no-eyed deer. :)

Reply Quote

Date: 27/12/2022 14:16:57
From: SCIENCE
ID: 1972149
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


SCIENCE said:

The Rev Dodgson said:

OK, but we are not looking for the simplest one.

We are looking for any method that has a reasonably simple and consistent procedure, but gives a different answer to the simplest one.

This is considered to be qi on QI, and who are we to argue with them?

no worries they’ve got it sorted*

https://oeis.org/

*: not sure about the sort order though

I might have missed it, because I haven’t got the Latin for following all this stuff, but they didn’t seem to have moll’s sequence there.

surely that’s because if you’re correct earlier then it’s a more general result not specific to the particular number (5) of terms given

Reply Quote

Date: 28/12/2022 21:02:30
From: KJW
ID: 1972580
Subject: re: 1, 2, 4, 8, 16, ...

mollwollfumble said:

If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

Reply Quote

Date: 28/12/2022 22:15:49
From: The Rev Dodgson
ID: 1972587
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


mollwollfumble said:
If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

Reply Quote

Date: 28/12/2022 22:18:13
From: dv
ID: 1972589
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


KJW said:

mollwollfumble said:
If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

Surely a gentleman of your talents can set out to prove that it is true for nth order polynomials generally.

Reply Quote

Date: 28/12/2022 22:21:54
From: The Rev Dodgson
ID: 1972590
Subject: re: 1, 2, 4, 8, 16, ...

dv said:


The Rev Dodgson said:

KJW said:

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

Surely a gentleman of your talents can set out to prove that it is true for nth order polynomials generally.

I’d probably get there eventually, but there are several people here who I’m sure would do it much more efficiently.

Anyway, I have things of greater moment to investigate just now. (best way to calculate secondary bending moments due to pre-stressing an indeterminant structure).

Reply Quote

Date: 28/12/2022 22:24:28
From: Peak Warming Man
ID: 1972593
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


dv said:

The Rev Dodgson said:

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

Surely a gentleman of your talents can set out to prove that it is true for nth order polynomials generally.

I’d probably get there eventually, but there are several people here who I’m sure would do it much more efficiently.

No worries.

Reply Quote

Date: 28/12/2022 22:39:24
From: KJW
ID: 1972599
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


KJW said:

mollwollfumble said:
If we fit a quartic (4th order) polynomial to 1,2,4,8,16 then the next number is 31.

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

I can’t speak about moll’s procedure for fitting a polynomial to a number of points, but fitting polynomials to points is something I’ve done in Excel (VBA) a number of years ago. The point I was making was that because the fitting of 5 points to a quartic polynomial (or in general, fitting n points to an (n–1)-th degree polynomial) is unique, if the 5 points are the values 1,2,4,8,16, then the quartic polynomial must be ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1, the same polynomial as the number of areas of the circle, in which case the next number is 31.

Reply Quote

Date: 28/12/2022 23:06:37
From: The Rev Dodgson
ID: 1972602
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


The Rev Dodgson said:

KJW said:

That’s interesting. However, because the formula for the number of areas of the circle is the quartic polynomial:

ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1

and fitting five points to a quartic polynomial uniquely specifies the quartic polynomial, 31 is the only number the next number could be.

But, if we fit to a quintic polynomial, we can fit 1,2,4,8,16, and an arbitrarily chosen sixth number.

But moll’s procedure of fitting a polynomial to a number of points then using that to calculate the next step always seems to result in 1 less than doubling for the last step, at least up to 7th order polynomials, so it seems more general than the number of triangles in a circle thing.

I can’t speak about moll’s procedure for fitting a polynomial to a number of points, but fitting polynomials to points is something I’ve done in Excel (VBA) a number of years ago. The point I was making was that because the fitting of 5 points to a quartic polynomial (or in general, fitting n points to an (n–1)-th degree polynomial) is unique, if the 5 points are the values 1,2,4,8,16, then the quartic polynomial must be ƒ(n) = n(n³ – 6n² + 23n – 18)/24 + 1, the same polynomial as the number of areas of the circle, in which case the next number is 31.

Agreed.
The form of the lowest order polynomials that fit the first n points in the doubled series is quite interesting. I’ll post my results tomorrow (going to sleep now).

Reply Quote

Date: 29/12/2022 11:58:49
From: The Rev Dodgson
ID: 1972742
Subject: re: 1, 2, 4, 8, 16, ...

I have now fitted polynomials of the form:
Y = C + (ax + bx^2 + cx^3 … + ix^9)/k

to series of doubled numbers up to 1,2,3,4,5,6,7,8,9,10 and here are the results:

So for any sequence of length n, with a polynomial of order n-1:
The next number in the sequence is always 2^n-1
If the k factor is (n-1)!, the highest power factor is always 1.
The constant C alternates between 1.0 and 0.0
With k=(n-1)! all the other factors are always integers with probably quite simple relationships which I haven’t worked out yet.

Reply Quote

Date: 29/12/2022 23:04:25
From: KJW
ID: 1973005
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


I have now fitted polynomials of the form:
Y = C + (ax + bx^2 + cx^3 … + ix^9)/k

to series of doubled numbers up to 1,2,3,4,5,6,7,8,9,10 and here are the results:

So for any sequence of length n, with a polynomial of order n-1:
The next number in the sequence is always 2^n-1
If the k factor is (n-1)!, the highest power factor is always 1.
The constant C alternates between 1.0 and 0.0
With k=(n-1)! all the other factors are always integers with probably quite simple relationships which I haven’t worked out yet.

That’s quite interesting. Thanks.

You probably should’ve used “a” as the highest degree coefficient rather than the lowest. One thing I noticed is that there is a pattern going from a3 to b4 to c5 etc. That is, b4–a3=–2, c5–b4=–3, d6–c5=–4, e7–d6=–5, f8–e7=–6, g9–f8=–7, h10–g9=–8.

Reply Quote

Date: 30/12/2022 01:52:58
From: SCIENCE
ID: 1973039
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:

mollwollfumble said:

There’s a very easy way to continue the sequence
1,2,4,8,16,31…
It’s called “divided differences”
Take the difference between each pair of numbers, and repeat.

1,2,4,8,16,31
1,2,4,8,15
1,2,4,7
1,2,3

Then extend the sequence and reverse the process.

1,2,3,4,5,6,…
1,2,4,7,11,16,22,…
1,2,4,8,15,26,42,64,…
1,2,4,8,16,31,57,99,163,…

Back in the dim distant past I found it very useful in answering certain questions in IQ tests.

I have now fitted polynomials of the form:
Y = C + (ax + bx^2 + cx^3 … + ix^9)/k

to series of doubled numbers up to 1,2,3,4,5,6,7,8,9,10 and here are the results:

So for any sequence of length n, with a polynomial of order n-1:
The next number in the sequence is always 2^n-1
If the k factor is (n-1)!, the highest power factor is always 1.
The constant C alternates between 1.0 and 0.0
With k=(n-1)! all the other factors are always integers with probably quite simple relationships which I haven’t worked out yet.

like we get that it’s entertaining to play but if the purpose is to confirm that the next number in the sequence is always that next number then why not just do it mollwollfumble’s way extended

as we all know the differences along a finite sequence of powers of 2 are … just powers of 2, that’s how they double, by adding themselves

which means if we take sequences starting from 1, the differences will be sequences starting from 1, again, that’s how it works

which means if we have a polynomial fitted to such a sequence, at the final stage the constant divided difference will be 1

which means if we extend the polynomial fit by an additional term, we repeat the constant divided difference of 1

which means if the sequence was actually powers of 2, then the corresponding divided difference would be 2 instead of 1

which means if we reverse the differencing by adding the 1 instead of the 2, every last difference in the sequence will be 1 less than the actual powers of 2

————

that is

you will notice that for powers of 2 sequences starting from 1, each successive length of sequence is just the previous sequence, added to itself as differences

videre licet

1
+ 1
1   2
+ 1 + 2 
1   2   4
+ 1 + 2 + 4
1   2   4   8
et cetera

so if we instead want powers of 2 sequences starting from 1 but extended by 1 term of polynomial fit, each successive length of sequence is just the previous sequence, added to itself as differences, extended by a term which is deficient by 1

videre licet

1   1
+ 1 + 1
1   2   3
+ 1 + 2 + 3
1   2   4   7
+ 1 + 2 + 4 + 7
1   2   4   8   15
et cetera

nothing special, just a natural consequence

Reply Quote

Date: 31/12/2022 00:42:40
From: KJW
ID: 1973577
Subject: re: 1, 2, 4, 8, 16, ...

I have worked out an expression for ƒn(x), the n-th degree polynomial satisfying ƒn(1)=1, ƒn(2)=2, ƒn(3)=4, ƒn(4)=8, … , ƒn(n+1)=2n. Assuming the hypothesis, ƒn(n+2)=2n+1–1 is true for all n:

ƒn(x) = 1 + (x+1) + 1/2(x+1)(x+2) + 1/6(x+1)(x+2)(x+3) + … + 1/n!(x+1)(x+2)…(x+n–1)(x+n)

Note that 1/n!(x+1)(x+2)…(x+n–1)(x+n) = 0 for x = 1, 2, … , n–1, n, and therefore this term adds 0 to ƒn–1(x) at these values of x. The factor of 1/n! is necessary to add 1 to 2n–1 (the hypothesis) to produce 2n.

Reply Quote

Date: 31/12/2022 00:46:37
From: KJW
ID: 1973578
Subject: re: 1, 2, 4, 8, 16, ...

CORRECTION:

I have worked out an expression for ƒn(x), the n-th degree polynomial satisfying ƒn(1)=1, ƒn(2)=2, ƒn(3)=4, ƒn(4)=8, … , ƒn(n+1)=2n. Assuming the hypothesis, ƒn(n+2)=2n+1–1 is true for all n:

ƒn(x) = 1 + (x–1) + 1/2(x–1)(x–2) + 1/6(x–1)(x–2)(x–3) + … + 1/n!(x–1)(x–2)…(x–(n–1))(x–n)

Note that 1/n!(x–1)(x–2)…(x–(n–1))(x–n) = 0 for x = 1, 2, … , n–1, n, and therefore this term adds 0 to ƒn–1(x) at these values of x. The factor of 1/n! is necessary to add 1 to 2n–1 (the hypothesis) to produce 2n.

Reply Quote

Date: 2/01/2023 11:05:16
From: The Rev Dodgson
ID: 1974622
Subject: re: 1, 2, 4, 8, 16, ...

Thanks for that KJW.

Just to keep you busy, perhaps you’d like to have a look at the same procedure applied to the sequence 3^(n-1):

In this case the polynomial projection gives a result that is 2^n less than the next in the 3^(n-1) sequence.

Reply Quote

Date: 2/01/2023 11:06:25
From: SCIENCE
ID: 1974623
Subject: re: 1, 2, 4, 8, 16, ...

so yous all don’t like the divided differences methods then

Reply Quote

Date: 2/01/2023 11:08:17
From: The Rev Dodgson
ID: 1974626
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:


so yous all don’t like the divided differences methods then

Meant to thank you for your post too. :)

I confess I found it pretty hard to follow, but I’ll have another look.

Reply Quote

Date: 2/01/2023 11:30:27
From: SCIENCE
ID: 1974633
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:

SCIENCE said:

so yous all don’t like the divided differences methods then

Meant to thank you for your post too. :)

I confess I found it pretty hard to follow, but I’ll have another look.

thanks well, constructive criticism is like constructive proof, hard truth

see if we can rephrase

Reply Quote

Date: 2/01/2023 11:38:59
From: SCIENCE
ID: 1974635
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

like we get that it’s entertaining to play but if the purpose is to confirm that the next number in the sequence is always that next number then why not just do it mollwollfumble’s way extended

as we all know the differences along a finite sequence of powers of 2 are … just powers of 2, that’s how they double, by adding themselves

which means if we take sequences starting from 1, the differences will be sequences starting from 1, again, that’s how it works

which means if we have a polynomial fitted to such a sequence, at the final stage the constant divided difference will be 1

which means if we extend the polynomial fit by an additional term, we repeat the constant divided difference of 1

which means if the sequence was actually powers of 2, then the corresponding divided difference would be 2 instead of 1

which means if we reverse the differencing by adding the 1 instead of the 2, every last difference in the sequence will be 1 less than the actual powers of 2

————

that is

you will notice that for powers of 2 sequences starting from 1, each successive length of sequence is just the previous sequence, added to itself as differences

videre licet

1
+ 1
1   2
+ 1 + 2 
1   2   4
+ 1 + 2 + 4
1   2   4   8
et cetera

so if we instead want powers of 2 sequences starting from 1 but extended by 1 term of polynomial fit, each successive length of sequence is just the previous sequence, added to itself as differences, extended by a term which is deficient by 1

videre licet

1   1
+ 1 + 1
1   2   3
+ 1 + 2 + 3
1   2   4   7
+ 1 + 2 + 4 + 7
1   2   4   8   15
et cetera

nothing special, just a natural consequence

So you want the next number in the sequence, you take the divided differences down to a constant.

In this case, being a finite length sequence of powers of 2, that has to be a single term.

If the first term is 1, then that single term will be 1.

Note that the divided differences along a sequence of powers of 2, are just themselves powers of 2.

1     2     4     8    16    32    64  128
   1     2     4     8    16    32    64
      1     2     4     8    16    32
         1     2     4     8    16
            1     2     4     8
               1     2     4
                  1     2
                     1

Anyway, in this case, to extend the sequence, you have to repeat the constant divided difference and sum back up.

That means instead of

1
+ 1
1   2
+ 1 + 2 
1   2   4
+ 1 + 2 + 4
1   2   4   8
et cetera

so if we instead want powers of 2 sequences starting from 1 but extended by 1 term of polynomial fit, each successive length of sequence is just the previous sequence, added to itself as differences, extended by a term which is deficient by 1

you get

1   1
+ 1 + 1
1   2   3
+ 1 + 2 + 3
1   2   4   7
+ 1 + 2 + 4 + 7
1   2   4   8   15
et cetera

and the 2^n – 1 follows.

Reply Quote

Date: 2/01/2023 11:47:37
From: The Rev Dodgson
ID: 1974639
Subject: re: 1, 2, 4, 8, 16, ...

Thanks for that; I’ll have a proper look later.

Does the same procedure work for the 3^(n-1) sequence?

Reply Quote

Date: 2/01/2023 11:47:37
From: The Rev Dodgson
ID: 1974640
Subject: re: 1, 2, 4, 8, 16, ...

Thanks for that; I’ll have a proper look later.

Does the same procedure work for the 3^(n-1) sequence?

Reply Quote

Date: 2/01/2023 12:08:50
From: SCIENCE
ID: 1974653
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:

Thanks for that; I’ll have a proper look later.

Does the same procedure work for the 3^(n-1) sequence?

d’n‘o’, we didn’t go that far

Reply Quote

Date: 2/01/2023 22:24:22
From: KJW
ID: 1974956
Subject: re: 1, 2, 4, 8, 16, ...

The Rev Dodgson said:


Thanks for that KJW.

Just to keep you busy, perhaps you’d like to have a look at the same procedure applied to the sequence 3^(n-1):

Actually, I still have to prove the hypothesis for the 2n case. But the expression I provided does seem ripe for a proof.

But I think I can provide the following generalisation:

Let ƒn(x) be an n-th degree polynomial satisfying the following:

For all j > n, and k = 1, 2, …, n, n+1:

ƒj(k) = ƒn(k)

Then:

ƒn(x) = c0 + c1(x–1) + c2(x–1)(x–2) + … + cn(x–1)(x–2)…(x–n)

for constants c0, c1, c2, …, cn to be determined. However, it is not clear if these constants depend on n.

Reply Quote

Date: 2/01/2023 22:38:23
From: KJW
ID: 1974969
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:

However, it is not clear if these constants depend on n.

On further consideration, I believe that the constants are independent of n.

Reply Quote

Date: 2/01/2023 22:38:42
From: dv
ID: 1974971
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


KJW said:
However, it is not clear if these constants depend on n.

On further consideration, I believe that the constants are independent of n.

elucidate

Reply Quote

Date: 2/01/2023 22:53:37
From: SCIENCE
ID: 1974977
Subject: re: 1, 2, 4, 8, 16, ...

LOL

Reply Quote

Date: 2/01/2023 22:56:16
From: KJW
ID: 1974980
Subject: re: 1, 2, 4, 8, 16, ...

Just to clarify, c0, c1, c2, etc are all different in general. But the thought occurred to me that maybe c0, c1, c2, etc for fm are different to c0, c1, c2, etc for fn. But then I realised this was not the case because ck determines ƒj(k+1) for all j > k, and because ƒj(k+1) is the same for all j > k, so must ck be the same for all j > k.

Reply Quote

Date: 2/01/2023 23:50:49
From: KJW
ID: 1974991
Subject: re: 1, 2, 4, 8, 16, ...

KJW said:


The Rev Dodgson said:

Thanks for that KJW.

Just to keep you busy, perhaps you’d like to have a look at the same procedure applied to the sequence 3^(n-1):

Actually, I still have to prove the hypothesis for the 2n case. But the expression I provided does seem ripe for a proof.

But I think I can provide the following generalisation:

Let ƒn(x) be an n-th degree polynomial satisfying the following:

For all j > n, and k = 1, 2, …, n, n+1:

ƒj(k) = ƒn(k)

Then:

ƒn(x) = c0 + c1(x–1) + c2(x–1)(x–2) + … + cn(x–1)(x–2)…(x–n)

for constants c0, c1, c2, …, cn to be determined. However, it is not clear if these constants depend on n.

Let ƒn(k) = 3k–1 for k = 1, 2, 3, …, n, n+1

For ƒn(x) = c0 + c1(x–1) + c2(x–1)(x–2) + … + cn(x–1)(x–2)…(x–n):

ƒn(1) = c0 = 1
ƒn(2) = c0 + c1 = 1 + c1 = 3; c1 = 2
ƒn(3) = c0 + 2c1 + 2c2 = 5 + 2c2 = 9; c2 = 2
ƒn(4) = c0 + 3c1 + 6c2 + 6c3 = 19 + 6c3 = 27; c3 = 4/3

From here on will probably benefit from the power of Excel.

Reply Quote

Date: 11/01/2023 12:51:52
From: SCIENCE
ID: 1978945
Subject: re: 1, 2, 4, 8, 16, ...

another find the next term puzzle for yous

Reply Quote

Date: 11/01/2023 14:24:21
From: dv
ID: 1978991
Subject: re: 1, 2, 4, 8, 16, ...

SCIENCE said:

another find the next term puzzle for yous


A confounding factor might be that the general rate of childhood death has increased in the UK, due to defunding and mismanagement of the NHS and lower access to food and heating.

Reply Quote