Re: Problem with nested for-loops



On Mar 10, 8:28 pm, Patricia Shanahan <p...@xxxxxxx> wrote:
un.stud...@xxxxxxxxx wrote:
On Mar 10, 7:39 pm, Patricia Shanahan <p...@xxxxxxx> wrote:
un.stud...@xxxxxxxxx wrote:
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)?
How about i=30? (30,1) or (15,2) or (10,3) or (6,5).

I would count these to the trivial cases. Suppose all a_i and i are
greater than two.

I'm not sure that is possible, and still have the general inverse
operation. What is the solution for i=37, arity 3?

Also, what is trivial about (10,3) and (6,5)? All tuple components are
greater than two.

The arity is 2 which reverts back to multiplication, 10*3 = 6*5.


But this isn't the point I'm trying to make. I'm trying to understand
the inverse operations involved here (and trying to see the nature of
the hierarchy created).

Getting solid rules about what is and is not permitted is essential to
that understanding. I'm trying to help that process by presenting cases
for which I don't understand the rules, especially what is "trivial" and
what is not.

Well, "trivial" is something like "high school algebra" and hence has
now exact meaning. When arity rises the operation changes.

I came up this problem when looking old notes about primitive
recursive functions. After thinking a while I thought it would be
possible to create a sort of hiearchy on the operation. First level is
addition by one, successor function, next addition, then
multiplication, then exponentiation etc.

Now, giving n-tuple (a_1, .., a_n) and running the "i'th" level
operation a_i times would result to some number and I just thought if
the inverse was possible.

I'm sorry to be so sort on these comments but I'm in quite a rush.
I'll get back to the subject later.

I, however, think that the idea should be understable. If I give
(4,5,9,1,4,3,8) and calculate i, how would one find the tuple given 7
and the resulting i.

.



Relevant Pages

  • Re: Talking of old jokes
    ... I'm familiar with MeChA which used the word and concept Reconquista in an idealistic or spiritual fashion. ... Sort of like not understanding the difference between the thing and its symbolic representation. ...
    (rec.arts.sf.fandom)
  • Re: Iran declares victory
    ... who seems soooo clueless (incl. ... this sort of thing - not truly ... understanding that others may not want to dilute their own culture & be ...
    (alt.autos.toyota)
  • Re: What Edser exemplifies explicitly, and all but one of all other sbe-participants exemplify i
    ... > Aside from the fact that the discernable portion of Peter's ramblings is ... > simply a sort of sophomoric Freudianism mixed with a sophomoric ... > understanding of avoidance conditioning and phobias, ...
    (sci.bio.evolution)
  • Re: append to the end of a dictionary
    ... >> I seem to be unable to find a way to appends more keys/values to the end ... > To get them in a key-order, my understanding is that you have to ... You can do all this and more from the OrderedDict in pythonutils: ... > a sort() method for the list returned by keys. ...
    (comp.lang.python)