|
Search: id:A079289
|
|
|
| A079289 |
|
For even n, a(n)=a(n-2)+a(n-1)+2^(n/2-2), n>2. For odd n, a(n)=a(n-2)+a(n-1) |
|
+0 1
|
|
| 1, 1, 2, 3, 6, 9, 17, 26, 47, 73, 128, 201, 345, 546, 923, 1469, 2456, 3925, 6509, 10434, 17199, 27633, 45344, 72977, 119345, 192322, 313715, 506037, 823848, 1329885, 2161925, 3491810, 5670119, 9161929, 14864816, 24026745, 38957097, 62983842
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
Generalized Fibonacci sequence related to partial row sum triangles based on Pascal's triangle.
Call a multiset of nonzero integers good if the sum of the cubes is the square of the sum. The number of ascending chains of good multisets starting from the empty set by adding one element at a time is a(n). - Michael Somos Apr 14 2005.
|
|
FORMULA
|
a(n)=a(n-2)+a(n-1)+floor(2^(k/2-2))(1-(-1)^(k+1))/2
|
|
EXAMPLE
|
a(4)=6 from the good multisets {-1,-1,1,1},{-1,1,1,2},{-2,-1,1,2},{-2,1,2,2},{-3,1,2,3},{1,2,3,4}.
|
|
PROGRAM
|
(PARI) {a(n)=local(A); if(n<3, (n>=0)+(n>1), A=vector(n, i, i); for(i=3, n, A[i]=A[i-1]+A[i-2]+ if(i%2==0, 2^(i/2-2))); A[n])} /* Michael Somos Apr 14 2005 */
|
|
CROSSREFS
|
Sequence in context: A056768 A029511 A056532 this_sequence A048811 A142155 A092351
Adjacent sequences: A079286 A079287 A079288 this_sequence A079290 A079291 A079292
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Paul Barry (pbarry(AT)wit.ie), Feb 08 2003
|
|
|
Search completed in 0.002 seconds
|