It seems, based on some of his writings, that Stanislaw Lem had some background in non-basic mathematics. For example the poem "Love and Tensor Algebra" from The Cyberiad.
As far as I know, he never formally studied mathematics, so I'm wondering — is it known how or when he became interested in mathematics, and how he learned it?