OFFSET
1,2
FORMULA
EXAMPLE
This sequence also equals the row sums of the triangle formed from the semi-Fibonacci numbers (A030067) with 2^n terms in row n for n>=0:
n=0: 1;
n=1: 1, 2;
n=2: 1, 3, 2, 5;
n=3: 1, 6, 3, 9, 2, 11, 5, 16;
n=4: 1, 17, 6, 23, 3, 26, 9, 35, 2, 37, 11, 48, 5, 53, 16, 69; ...
The semi-Fibonacci numbers (A030067) start:
[1, (1), 2, 1, (3), 2, 5, 1, 6, 3, 9, 2, (11), 5, 16, 1, ...],
and obey the recurrence:
This sequence also equals row sums of matrix square A129100^2:
1;
2, 1;
6, 4, 1;
24, 20, 8, 1;
136, 136, 72, 16, 1;
1162, 1360, 880, 272, 32, 1; ...
PROG
(PARI) /* As row sums of the matrix square of triangle A129100: */
a(n)=local(A=Mat(1), B); for(m=1, n+1, B=matrix(m, m); for(r=1, m, for(c=1, r, if(r==c || r==1 || r==2, B[r, c]=1, if(c==1, B[r, 1]=sum(i=1, r-1, A[r-1, i]), B[r, c]=(A^(2^(c-1)))[r-c+1, 1])))); A=B); sum(k=1, n, (A^2)[n, k])
for(n=1, 20, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Mar 29 2007
STATUS
approved