bounded products of some primes

19 views
Skip to first unread message

G. M.-S.

unread,
Sep 27, 2026, 4:25:35 PM (8 days ago) Sep 27
to sage-s...@googlegroups.com

What is the "best" way of def'ing a function for this in SageMath?

Input:  a list of positive integers [x1, … , xn] (actually distinct primes) and a bound M.
Output:  the list of all (e1, … , en) with ei ⩾ 0 such that x1^e1*…*xn^en ⩽ M.

TIA,

Guillermo

Reply all
Reply to author
Forward
0 new messages