[Tutor] how to write an algorithm for sequence

Gonçalo Rodrigues op73418@mail.telepac.pt
Tue Feb 11 21:46:29 2003


----- Original Message -----
From: "reavey" <reavey@nep.net>
To: <tutor@python.org>
Sent: Thursday, February 13, 2003 2:18 AM
Subject: [Tutor] how to write an algorithm for sequence


> I'm stumped. I made up this sequence and I can't figure out a method.
> the sequence is 1,5,7,15,19,35, 43, 75...

What is your question, exactly? The formula that suposedly reproduces the
above sequence? That is a mathematics question, not a Python programming
one. And without more input there is not much anyone can say - there are
infinite (and a very high cardinal) functions on the integers reproducing
the above.

> thanks
> re-v
>

All the best,
G. Rodrigues