HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

What is fastest algorithm for factoring out square from number

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
numberwhatfactoringalgorithmforfastestsquarefromout

Problem

I have $n$-digit integer $N=a^2b$, $b$ is square-free. In other words, $a$ is maximal square which divides $N$.

What is fastest known algorithm to find $a$? I can write algorithm of $O(n^2\sqrt{N})$ simply trying all squares that are smaller than $N$ and checking for divisibility.

Is this problem as hard as factoring integer?

Solution

Using state of the art factoring algorithms, you can substantially improve on the algorithm you state. It appears that no algorithm better than factoring is known at the moment. See this question on mathoverflow.

Context

StackExchange Computer Science Q#54696, answer score: 3

Revisions (0)

No revisions yet.