chickadee » math » perfect-power?

perfect-power? mprocedure
m
integer

Returns #t if m is a perfect power, otherwise #f.

> (perfect-power? (expt 3 4))
#t
> (perfect-power? (+ (expt 3 4) 1))
#f

Wikipedia: Perfect Power