Re: Problem with nested for-loops



On Mar 10, 1:19 pm, un.stud...@xxxxxxxxx wrote:

Actually I didn't quite state the question I had in my mind. I need to
rethink how to state what I was after to.

I can't come up with a decent algorithmic description so I'll use
plain english.

The idea was to generate a hierarchy of operations. The base level was
supposed to be addition by one, i.e. successor-function. The next
level multiplication, next exponentiation etc.

If we had just (3) this would lead to i=3, if (3,4) then i = 3*4 = 12,
if (3,4,2) i = (3*4)^2 = 12^2=144, if (3,4,2,3) i = 144^144^144 etc.

Now if arity of the tuple and i were given, how would one find the
tuple? Would it be unique (in the non-trivial sense)?

.