OFFSET
1,3
COMMENTS
The sequence starting (1, 3, 18, ...) = the eigensequence of an infinite lower triangular matrix with n terms of the Pell series in each row: (1, 2, 5, ...).
FORMULA
a(1) = 1, a(2) = 1, then a(n) = Sum_{j=1..n-1} a(j)*A000129(j), for n >2.
EXAMPLE
a(5) = 234 = (1, 1, 3, 18) dot (1, 2, 5, 12) = (1 + 2 + 15 + 216).
MAPLE
A159640 := proc(n)
option remember;
if n <= 2 then
1;
else
add(procname(j)*A000129(j), j=1..n-1) ;
end if;
end proc: # R. J. Mathar, Aug 12 2012
PROG
(PARI) P(n) = ([2, 1; 1, 0]^n)[2, 1]; \\ A000129
a(n) = if (n>2, sum(j=1, n-1, a(j)*P(j)), 1); \\ Michel Marcus, Feb 09 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Apr 18 2009
STATUS
approved