OFFSET
0,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..1000
MAPLE
f:=proc(n, x, y, r) option remember;
if n=0 then x
elif n=1 then y
else floor(f(n-1, x, y, r)^2/f(n-2, x, y, r) + r); fi; end;
[seq(f(n, 8, 12, 1/2), n=0..60)];
PROG
(Python)
a, b = 8, 12
A274951_list = [a, b]
for i in range(1000):
c, d = divmod(b**2, a)
a, b = b, c + (0 if 2*d < a else 1)
A274951_list.append(b) # Chai Wah Wu, Aug 06 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 05 2016
STATUS
approved