ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 18 Sep 2011 10:53:09 -0500Can I create these sequences with Sage?https://ask.sagemath.org/question/8330/can-i-create-these-sequences-with-sage/Let me start by confessing that I know next to nothing about math and really don't know exactly how to describe what I'm trying here; I hope the below description is adequate.
I am attempting to create a list of all possible 7-digit sequences of the numbers 1, 2, and 3 that add up to 12 (e.g., 1-2-2-3-1-1-2, 2-1-2-3-1-1-2, 2-1-2-3-1-2-1, etc.). I'm not looking merely for the number of sequences, but the actual sequences themselves. Is this something that Sage is capable of and, if so, how would I go about accomplishing this? If notÂ… any suggestions?
Thank you in advance.
GregGrigoriSun, 18 Sep 2011 10:53:09 -0500https://ask.sagemath.org/question/8330/