This was a short story or novella I read before 2010, likely in an anthology, and definitely printed.
Earth's economy had come to rely heavily on Mars for nuclear fuels that could be produced more cheaply there than on Earth. I think the Martian population were humans in a long-established colony.
Mars was contacted unexpectedly by an alien race from a remote star-system. The aliens had a technology that could transmit non-living matter over huge distances, and wanted to trade.
The aliens could easily convert uranium isotope 238 into 235, which provided Mars with an even cheaper way to produce their fuels. Eventually the economies of both Earth and Mars relied on the aliens, to the point that the aliens were calling the shots and humans felt they had been effectively conquered.
Two humans made the long journey to the alien home-worlds to try to learn how the conversion was done. They had to fly past at least one alien ship.
The aliens had a scanner that let them see and hear what was happening in the humans' ship, but the humans could tell when it was being used so they acted oddly to confuse the aliens. The scanner relied on whatever ambient light was in the area being scanned. At one point, knowing the aliens couldn't see red light, the humans switched their cabin lights to red and communicated in written notes while pretending to sleep.
They landed on an alien planet and found a huge, low, flat-roofed building with very square angles. One of them described it as a cubist's idea of a cornfield.
Eventually they
found a wild alien bacterium that naturally converted 238U to 235U, and were able to return it to Earth.