OFFSET
0,1
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
MAPLE
A022020 := proc(n)
option remember;
if n <= 1 then
op(n+1, [3, 9]) ;
else
a := procname(n-1)^2/procname(n-2) ;
if type(a, 'integer') then
a+1 ;
else
ceil(a) ;
fi;
end if;
end proc: # R. J. Mathar, Feb 10 2016
PROG
(PARI) a=[3, 9]; for(n=2, 30, a=concat(a, a[n]^2\a[n-1]+1)); a \\ M. F. Hasler, Feb 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Double-checked and extended to 3 lines of data by M. F. Hasler, Feb 10 2016
STATUS
approved