# [x^14+x^i+x^j with (i,j) in (13,13) where j<i]

How can I do it?

to get: [x^14, x^14 + 1, x^14 + x + 1, x^14 + x^2 + x, x^14 + x^2 + 1,...

add a comment

[x^14+x^i+x^j with (i,j) in (13,13) where j<i]

How can I do it?

to get: [x^14, x^14 + 1, x^14 + x + 1, x^14 + x^2 + x, x^14 + x^2 + 1,...

add a comment

1

Try this:

```
[x^14 + x^i + x^j for i in range(1,14) for j in range(1,14) if j<i]
```

Asked: **
2013-12-08 15:46:56 -0500
**

Seen: **58 times**

Last updated: **Dec 08 '13**

Is it possible to speed up loop iteration in Sage?

Difference between sum and for loop

How to compute an iterated product in Sage

How to define multiple WeylCharacterRings at one time

Error when using 'for in range()' but not ' for in [..]'

Add graphs produced by a for loop?

plotting multiple functions from a for loop

Plotting successive 3D plots in a for loop (only the last one can be plotted!)

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.