(a)
return c
Returns an integer `c` s.t. `a = c^2k, \ c,k \in Z`. Here `k` is square
    free.

    Examples
    ========

    >>> from sympy.solvers.diophantine import square_factor
    >>> square_factor(24)
    2
    >>> square_factor(36)
    6
    >>> square_factor(1)
    1
Returns an integer `c` s.t. `a = c^2k, \ c,k \in Z`. Here `k` is square
    free.
Returns an integer c s . t . a = c^2k \ c k \ in Z . Here k is square free .
def square_factor(a):
    """
    Returns an integer `c` s.t. `a = c^2k, \ c,k \in Z`. Here `k` is square
    free.

    Examples
    ========

    >>> from sympy.solvers.diophantine import square_factor
    >>> square_factor(24)
    2
    >>> square_factor(36)
    6
    >>> square_factor(1)
    1
    """
    f = factorint(abs(a))
    c = 1

    for p, e in f.items():
        c = c * p**(e//2)

    return c
def square_factor ( a ) : f = factorint ( abs ( a ) ) c = 1 for p , e in f . items ( ) : c = c * p ** ( e // 2 ) return c