ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 11 Dec 2013 18:37:35 -0600Ascending tuples of integershttps://ask.sagemath.org/question/10822/ascending-tuples-of-integers/Hi everyone,
I'm trying to define the set of all tuples of ascending integers (any length, repetitions allowed). What is the best way to do this? Do I use Family()? I'd like to use this set enumerate the basis of a combinatorial free algebra.
Bonus question: Is it possible to add an extra label to each integer in the tuple?Tue, 10 Dec 2013 21:27:21 -0600https://ask.sagemath.org/question/10822/ascending-tuples-of-integers/Comment by nbruin for <p>Hi everyone,</p>
<p>I'm trying to define the set of all tuples of ascending integers (any length, repetitions allowed). What is the best way to do this? Do I use Family()? I'd like to use this set enumerate the basis of a combinatorial free algebra.</p>
<p>Bonus question: Is it possible to add an extra label to each integer in the tuple?</p>
https://ask.sagemath.org/question/10822/ascending-tuples-of-integers/?comment=16546#post-id-16546Isn't this equivalent to the set of tuples of non-negative integers via the
correspondence
(x0,x1,x2,x3,...,xk) <-> (x0,x1-x0,x2-x1,x3-x2,...,xk-x[k-1])
(I guess you can allow x0 to be negative if that fits your description)
Wed, 11 Dec 2013 18:37:35 -0600https://ask.sagemath.org/question/10822/ascending-tuples-of-integers/?comment=16546#post-id-16546