OFFSET
0,1
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Tanya Khovanova, Recursive Sequences.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 2*n + 7.
a(n) = 2*a(n-1) - a(n-2).
From Elmo R. Oliveira, Oct 30 2024: (Start)
G.f.: (7 - 5*x)/(1 - x)^2.
E.g.f.: (7 + 2*x)*exp(x).
MATHEMATICA
T[x_, y_, z_] := Block[{a}, a[0] = x; a[1] = y; a[n_] := a[n] = Floor[a[n - 1]^2/a[n - 2]]; Table[a[n], {n, 0, z}]]; T[7, 9, 66] (* Michael De Vlieger, Aug 08 2016 *)
PROG
(PARI) pisotT(nmax, a1, a2) = {
a=vector(nmax); a[1]=a1; a[2]=a2;
for(n=3, nmax, a[n] = floor(a[n-1]^2/a[n-2]));
a
}
pisotT(50, 7, 9) \\ Colin Barker, Aug 08 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved