Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to get unitary divisors #20369

Open
jm58660 mannequin opened this issue Apr 6, 2016 · 0 comments
Open

Add function to get unitary divisors #20369

jm58660 mannequin opened this issue Apr 6, 2016 · 0 comments

Comments

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Apr 6, 2016

Add a function to get unitary divisors of an integer / of an element of UFD. For definition see https://en.wikipedia.org/wiki/Unitary_divisor. Trivial way to make this function is

def unitary_divisors(n):
    return [prod([p[0]^p[1] for p in f]) for f in Set(factor(n)).subsets()]

Before proceeding we should discuss about what to put in the global namespace. For that discussion see https://groups.google.com/forum/#!topic/sage-devel/DHMCJydPqJU.

CC: @bgrenet

Component: number theory

Issue created by migration from https://trac.sagemath.org/ticket/20369

@jm58660 jm58660 mannequin added this to the sage-7.2 milestone Apr 6, 2016
@jm58660 jm58660 mannequin added c: number theory labels Apr 6, 2016
@mkoeppe mkoeppe removed this from the sage-7.2 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant