OFFSET
0,2
LINKS
FORMULA
a(n) = (11^(n+1) - 8^(n+1))/3. - Lambert Klasen (lambert.klasen(AT)gmx.net), Feb 05 2005
a(n) = 11*a(n-1) + 8^n, a(0)=1. - Vincenzo Librandi, Feb 09 2011
a(n) = 19*a(n-1) - 88*a(n-2), a(0)=1, a(1)=19. - Vincenzo Librandi, Feb 09 2011
MATHEMATICA
Join[{a=1, b=19}, Table[c=19*b-88*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Feb 14 2011 *)
PROG
(PARI) for(n=1, 10, print1((11^n-8^n)/3, ", "))
(PARI) MM(n, N) = local(M); M=matrix(n, n); for(i=1, n, for(j=1, n, if(i==j, M[i, j]=N, M[i, j]=1))); M
for(i=1, 10, print1((MM(3, 9)^i)[1, 2], ", "))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved