#13516: prime_powers doesn't work with start very well
---------------------------------+------------------------------------------
Reporter: kcrisman | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.4
Component: number theory | Resolution:
Keywords: beginner | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by was):
I would prefer to leave 1 as a prime power because it is listed in
Sloane's tables as a prime power: http://oeis.org/A000961
There he says "Since 1 = p^0 does not have a well defined prime base p, it
is sometimes not regarded as a prime power.", which might be where your
misgivings come from.
If by "prime power" one thinks of "power of a prime", the only question
is in what set are we considering the prime powers. If we take the
natural numbers, then the number 1 is definitely a power of a prime.
If by "prime power" one thinks "power of a specific canonical prime", then
1 is not such a thing.
In this case, the best thing to do is stick with what is there (to avoid
introducing bugs in other people's code!) and clearly document/define what
a prime power is in Sage.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13516#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.