|
|
|
|
2, 14, 122, 1094, 9842, 88574, 797162, 7174454, 64570082, 581130734, 5230176602, 47071589414, 423644304722, 3812798742494, 34315188682442, 308836698141974, 2779530283277762, 25015772549499854, 225141952945498682
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 9*a(n-1)-4.
a(n) = 10*a(n-1)-9*a(n-2).
G.f.: 2*(1-3*x)/((1-x)*(1-9*x)).
|
|
MATHEMATICA
|
LinearRecurrence[{10, -9}, {2, 14}, 30] (* or *) NestList[9#-4&, 2, 30] (* Harvey P. Dale, May 30 2012 *)
|
|
PROG
|
(Magma) [(3*9^n+1)/2: n in [0..30]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|