MathGroup Archive 2003

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

Search the Archive

Problem with NestWhileList

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43673] Problem with NestWhileList
  • From: "Robert G. Wilson v" <rgwv at rgwv.com>
  • Date: Sun, 28 Sep 2003 06:01:00 -0400 (EDT)
  • Organization: The Horse Of Course
  • Sender: owner-wri-mathgroup at wolfram.com

Hello all,

	I am working on the function f(x) = 3/2* Ceiling(x) and then counting the number 
of iterations beginning with 2n+1 to reach an integer.

	Let me give an example. Beginning with 15 -> 45/2 -> 69/2 -> 105/2 -> 159/2 -> 
120. This means that it takes 5 'mapping' of the function, f, to reach an integer. 
See http://www.research.att.com/projects/OEIS?Anum=A085058

	Question, How do I write this? I have tried:
NestWhileList[3Ceiling[#1]/2 &, 15, !IntegerQ, {2, 10}] but all I get is:
{15, 45/2}.

	Any help would be greatly appreciated.

Sincerely yours,

Robert G. 'Bob' Wilson, V


  • Prev by Date: Re: ScientificForm in Ticks
  • Next by Date: Re: Animation Help
  • Previous by thread: Re: webMathematica:MSPValues and TEXTAREA
  • Next by thread: Re: Problem with NestWhileList