Ralph G Selfridge wrote:
> On Fri, 8 Dec 2006, John Randall wrote:
> > Let f(x,y)=108-(815-1500%y)%x and let g(n+1)=f(g(n),g(n-1)), with g(0)=4,
> > g(1)=4.25.
> > Then g(n)->L as n goes to infinity. The question is, what is L? Or
> > even what is g(80)? [Hint: neither of these is 100.]
Looks to me like the limit is 5:
f=:108 - (815 - 1500 % ]) % [
gSav=:4 17r4 NB. no M. yet
g=:3 :0"0
if.y>:#gSav do.gSav=: gSav, (g y-1) f g y-2 end.
y{gSav
)
<.&.(1e20&*) g 8 80 800
|domain error
1e_20*<.(x:1e20)*g 8 80 800
4.96696 5 5
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm