OFFSET
0,2
LINKS
FORMULA
From Philippe Deléham, Feb 05 2020: (Start)
G.f.: (1+x^2)/(1-2x-3*x^2).
a(0)=1, a(1)=2, a(2)=8, a(n)=2*a(n-1)+3*a(n-2) , for n>2.
a(0)=1, a(n) = (5*3^(n-1)-(-1)^(n-1))/2, for n>0 . (End)
MATHEMATICA
(* The function RiordanSquare is defined in A321620. *)
Lucas = 1 + x*(1 + 2x)/(1 - x - x^2);
M = RiordanSquare[Lucas, 29]; Map[Total, M]
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Nov 22 2018
STATUS
approved