OFFSET
0,1
COMMENTS
The empirical g.f. / recurrence agrees with the original definition for at least 2000 terms (and a(2000) ~ 10^1250). - M. F. Hasler, Feb 11 2016
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
FORMULA
Empirical g.f.: -(x^6+x^5+x^4+x^3-x-4) / ((x-1)*(x^6+2*x^5+3*x^4+4*x^3+4*x^2+3*x-1)). - Colin Barker, Sep 18 2015
a(n+1) = ceiling(a(n)^2/a(n-1))-1 for all n > 0. a(n+1)/a(n) ~ 4.219599938... as n -> oo. - M. F. Hasler, Feb 11 2016
PROG
(PARI) a=[4, 17]; for(n=2, 2000, a=concat(a, ceil(a[n]^2/a[n-1])-1)); A022031(n)=a[n+1] \\ M. F. Hasler, Feb 11 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by M. F. Hasler, Feb 11 2016
STATUS
approved