Non trivial powers Revisted by sjoerd_visscher

m@main=readLn>>=putStrLn.f>>m
f n=s n++" = "++unwords[s x++'^':s p|p<-[2..21],x<-[round$r n**(1/r p)],x^p==n]
s=show
r=read.s

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page