Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Generate a conditional list of integers

Dear all,

I'm assuming I can use Sage to generate a series of integers numbers under certain conditions. Suppose I have a theorem states that: Let N be a square-free positive integer such that N ≡ −1 (mod 24), then........etc

If I want to generate a long list of squarefree numbers N's satisfied the previous condition, how can I do that?

Thank you very much in advance

Mohd

Generate a conditional list of integers

Dear all,

I'm assuming I can use Sage to generate a series of integers numbers under certain conditions. Suppose I have a theorem states that: Let N be a square-free positive integer such that N ≡ −1 (mod 24), then........etc

If I want to generate a long list of squarefree numbers N's satisfied the previous condition, how can I do that?

Thank you very much in advance

Mohd