OFFSET
0,1
LINKS
FORMULA
a(n) = ceiling(a(n-1)^2/a(n-2)), a(0) = 5, a(1) = 12.
a(n) = floor(a(n-1)^2/a(n-2)+1), a(0) = 5, a(1) = 12.
Conjectures: (Start)
G.f.: (5 - 3*x + 3*x^2 - 2*x^3 + x^5 - 3*x^6 - x^7 - 2*x^8)/((1 - x)*(1 - 2*x - 2*x^3 - x^4 - x^5 - 2*x^6 - x^7 - x^8)).
a(n) = 3*a(n-1) - 2*a(n-2) + 2*a(n-3) - a(n-4) + a(n-6) - a(n-7) - a(n-9). (End)
MATHEMATICA
RecurrenceTable[{a[0] == 5, a[1] == 12, a[n] == Ceiling[a[n - 1]^2/a[n - 2]]}, a, {n, 28}]
RecurrenceTable[{a[0] == 5, a[1] == 12, a[n] == Floor[a[n - 1]^2/a[n - 2] + 1]}, a, {n, 28}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Sep 29 2016
STATUS
approved