Original: M*A*S*H is an American television series developed by Larry Gelbart, adapted from the 1970 feature film MASH (which was itself based on the 1968 novel MASH: A Novel About Three Army Doctors, by Richard Hooker).
Simplified: It was inspired by MASH: A Novel About Three Army Doctors.