Skip to content

perfect_power() gives wrong result #40846

@maxale

Description

@maxale

Steps To Reproduce

sage: (26^2).perfect_power()
(676, 1)

Expected Behavior

Should return(26, 2).

Actual Behavior

Wrong result.

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.3 LTS
  • Sage Version: 10.7.beta8

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions