brian bovril

889 Reputation

16 Badges

18 years, 302 days

MaplePrimes Activity


These are replies submitted by brian bovril

Carl, wonder if you can alter this code to catch the longest sequences <= n for a given AD and output them

for instance, 

I/P:

AD:=210,n:=11

O/P:

7: [47, 257, 467, 677, 887, 1097, 1307] 
10: [199, 409, 619, 829, 1039, 1249, 1459, 1669, 1879, 2089]

 

@Carl Love 

thanks Carl, but it would be nice to do it as a procedure

@Carl Love 

thanks Carl, but it would be nice to do it as a procedure

modifying some Acer code

> g := proc(n) local f,F,i; f := (t,n) -> 2+(2*n-1)^2/t; F := n; for i from n-1 to 1 by -1 do F := f(F,i); od; F; end proc;

> evalf(4/(1+g(10000)));
                 

1.222025897

(it doesn't converge very quickly)

modifying some Acer code

> g := proc(n) local f,F,i; f := (t,n) -> 2+(2*n-1)^2/t; F := n; for i from n-1 to 1 by -1 do F := f(F,i); od; F; end proc;

> evalf(4/(1+g(10000)));
                 

1.222025897

(it doesn't converge very quickly)

my attempt:

V:= root(22,3):
> for n from 3 by -1 to 2 do
> V:= sqrt(22+V): end do:
> V;
> evalf(V)
> ;
                                                 (1/2)
                       /                   (1/2)\    
                       |     /       (1/3)\     |    
                       \22 + \22 + 22     /     /    
                                 5.194243409

no. because it needs to allow for every 2nd term being cube rooted. the answers 5

my attempt:

V:= root(22,3):
> for n from 3 by -1 to 2 do
> V:= sqrt(22+V): end do:
> V;
> evalf(V)
> ;
                                                 (1/2)
                       /                   (1/2)\    
                       |     /       (1/3)\     |    
                       \22 + \22 + 22     /     /    
                                 5.194243409

no. because it needs to allow for every 2nd term being cube rooted. the answers 5

@Carl Love 

ok, now i'm in this mode.

but it doesn't appear to work. firstly i apply my template settings globally (a worksheet of yours).

then i creat a new worksheet and reverts to the default settings. here are 2 before screenshots.

(template )and after (untitled)  

@Carl Love 

ok, now i'm in this mode.

but it doesn't appear to work. firstly i apply my template settings globally (a worksheet of yours).

then i creat a new worksheet and reverts to the default settings. here are 2 before screenshots.

(template )and after (untitled)  

@Carl Love 

i loaded one of your worksheets ...i went through the menu steps above....didn't change anything,.

in the first instance did you go: Format=>Styles,

then...Format=>Manage Style Sets...

@Carl Love 

i loaded one of your worksheets ...i went through the menu steps above....didn't change anything,.

in the first instance did you go: Format=>Styles,

then...Format=>Manage Style Sets...

funnily enough, when I logged onto this site with my second hand ipad (by coincidence i'm currently touring in the OP's country) I found out I'd been banned (I've never visited the site before!). This is a screen shot of the message.

OP's name a coincidence?

 

 

thanks Carl. too easy for you

First 16 17 18 19 20 21 22 Last Page 18 of 26