MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Goodstein expansion

  • To: mathgroup at
  • Subject: [mg132315] Goodstein expansion
  • From: "Brambilla Roberto Luigi (RSE)" <Roberto.Brambilla at>
  • Date: Sat, 8 Feb 2014 04:02:30 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

The Goodstein expansion of integers  (see for instance  Stillwell," Roads to Infinity", pag.47)

Given an integer n we can write it as sum of powers of  2


More generally assuming an integer b as a base, we can write  n as a sum of power of b with coefficients <b
es.:  b=5


I can do it by means of a long and obvious routine with lots  of  If[]  and While[].
May be someone can do it by means of the recursive properties of Mathematica language?
Many thanks to all the friends of this group!

RSE SpA ha adottato il Modello Organizzativo ai sensi del D.Lgs.231/2001, in=
 forza del quale l'assunzione di obbligazioni da parte della Societ=E0 avvie=
ne con firma di un procuratore, munito di idonei poteri.
RSE adopts a Compliance Programme under the Italian Law (D.Lgs.231/2001). Ac=
cording to this RSE Compliance Programme, any commitment of RSE is taken by=
 the signature of one Representative granted by a proper Power of Attorney.=
 Le informazioni contenute in questo messaggio di posta elettronica sono ris=
ervate e confidenziali e ne e' vietata la diffusione in qualsiasi modo o for=
ma. Qualora Lei non fosse la persona destinataria del presente messaggio, La=
 invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazi=
one al mittente. The information included in this e-mail and any attachments=
 are confidential and may also be privileged. If you are not the correct rec=
ipient, you are kindly requested to notify the sender immediately, to cancel=
 it and not to disclose the contents to any other person.

  • Prev by Date: Re: Animate parametric plot of two lists?
  • Next by Date: Re: Embedding CDF in a Google Spreadsheet Form
  • Previous by thread: Re: Animate parametric plot of two lists?
  • Next by thread: Re: Goodstein expansion