From Wikipedia, the free encyclopedia

for a = 1,10,1 do

	for b = 1,10,1 do

		for c = 1,10,1 do

			for n = 3,10,1 do

				if math.pow(a,n)+math.pow(b,n)==math.pow(c,n) then return {a, b, c, n} end -- this can never happen, but lua has no way of knowing that

			end

		end

	end

end



return {'no solution'}
From Wikipedia, the free encyclopedia

for a = 1,10,1 do

	for b = 1,10,1 do

		for c = 1,10,1 do

			for n = 3,10,1 do

				if math.pow(a,n)+math.pow(b,n)==math.pow(c,n) then return {a, b, c, n} end -- this can never happen, but lua has no way of knowing that

			end

		end

	end

end



return {'no solution'}

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook