I want a generalization of this kind

`[(r1, ..., rk) for r1 in range(n+1) ... for rk in range(n+1) if r1 + ... + rk = n]`

For a general number of $r$'s and any $n$

1 | initial version |

I want a generalization of this kind

`[(r1, ..., rk) for r1 in range(n+1) ... for rk in range(n+1) if r1 + ... + rk = n]`

For a general number of $r$'s and any $n$

I want a generalization of this kind

`[(r1, ..., rk) for r1 in range(n+1) ... for rk in range(n+1) if r1 + ... + rk = n]`

For a general number of $r$'s and any $n$

I want a generalization of this kind

`[(r1, ..., rk) for r1 in range(n+1) ... for rk in range(n+1) if r1 + ... + rk = n]`

For a general number of $r$'s and any $n$

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.