Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 12 Professional
Maple 12 Academic
Maple 12 Student Use
Recorded Online Seminars
FREE Training Resources
Maple Application Briefs
Maple Adoption Program

MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Goodstein sequence

Search email archive for  

[MUG] Goodstein sequence
Author: Joe    Posted: Tue, 3 Dec 2002 23:02:09 -0000

>> From: "Joe" "Joe13121312"

Hi,I am one of a university student and I have got a question in Maple 7
want to ask. Please, help.
Are there any shortcut (e.g. like gcd,lcm or convert etc.)in Maple that help
us to work out
e.g. (I think this is what we call Goodstein sequence,but not sure)
you got a number 275 and a base say 2 to convert to this form
2^8+2^4+2+1 or 2^(2^(2+1))+2^(2^(2))+2+1
if a base 3 then convert to
3^5+3^3+3+2 or 3(3+2)+3^3+3+2
if not could you help me write a procedure to solve this kind of problem or
give me some hints about how to start to write this procedure in Maple. Also
where can I find any information about this.
Thank you and my e-mail is "joe13121312"

[MUG] Re: Goodstein sequence
Author: Maple User Group    Posted: Fri, 6 Dec 2002 18:02:21 -0500 (

>> From: Maple User Group "maple_gr"

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Wed, 4 Dec 2002 18:38:32 -0500 (EST)
From: Carl Devore "devore"
To: "maple-list"
Subject: Goodstein sequence

On Tue, 3 Dec 2002, Joe wrote:
> Are there any shortcut (e.g. like gcd,lcm or convert etc.)in Maple that help
> us to work out
> e.g. (I think this is what we call Goodstein sequence,but not sure)
> you got a number 275 and a base say 2 to convert to this form
> 2^8+2^4+2+1 or 2^(2^(2+1))+2^(2^(2))+2+1

Base conversion just requires integer quotients and remainders (iquo or
irem). No gcd's required. Or you can just use convert(275, base, 2).
Then apply that recursively to the expoments and cpnvert it to an
unevaluated exponential form for printing:

Goodstein:= proc(n,b)
local i,x;
x:= convert(n,base,b);
if n<b then n else add(x[i]*``(b)^Goodstein(i-1,b), i= 1..nops(x)) fi
end proc;

Goodstein(275,2);

Goodstein(275,3);



-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Thu, 5 Dec 2002 07:57:48 +0530 (IST)
From: A Prashanth pg ee "aprash"
To: "maple-list"
Subject: Goodstein sequence

i guess you're trying to convert between bases. you should employ the
'convert' command (built into maple 7) to perform the transformation.
there exist two valid syntaxes for the command that allow you to transform
numbers of base 10 to numbers of any base or a list of numbers in one base
to a second base. look up help on 'convert, base' and the examples there
to learn how to run this command. hope that helps.

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Wed, 04 Dec 2002 22:07:40 -0800
From: "Maple"
Subject: Goodstein sequence
To: "maple-list"

Joe,

I don't know about "Goodstein sequences", but Maple's "convert" routine
converts between arbitrary bases. For some strange reason it returns the
results in reverse order of what I would expect (LSB on the left), so you
have to be careful of that.

> convert(275,base,3);
[2, 1, 0, 1, 0, 1]
> evalf(2*3^0 + 3^1 + 3^3 + 3^5);
275.
> convert([2,1,0,1,0,1],base,3,10);
[5, 7, 2]
>

-- Ron

Previous by date: [MUG] Re: same function with different arrangement give different plots?, Maple User Group
Next by date: [MUG] Curious simplification,  Greg Gamble
Previous thread: [MUG] Maple and real-time data, Denis Sevee
Next thread: [MUG] Curious simplification,  Greg Gamble



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055