Reasonably, but not 100 pct, sure that the book came AFTER the movie, which is regarded a classic of cinema, and deservedly so.
It came out at the same time Catch 22 did, and absolutely buried it, even though Catch 22 had bigger stars, bigger budget, bigger director and bigger 'Push' over all. It may be a better movie, too.
The series became preachy and predictable after a couple of years, and by the end it was really little more than The Alan Alda Sensitive Guy Half Hour, featuring Harry Morgan, Jamie Farr and that fat guy that went on to guest star in everything from Star Trek, TNG to Matlock....
But the first 4 years or so are classic....
FWIW, there ARE lyrics to the theme song, it's the song they play at the dentists 'Ceremony' in the movie:
Through early morning fog I see
visions of the things to be
the pains that are withheld for me
I realize and I can see...
[REFRAIN]:
that suicide is painless
It brings on many changes
and I can take or leave it if I please.
I try to find a way to make
all our little joys relate
without that ever-present hate
but now I know that it's too late, and...
[REFRAIN]
The game of life is hard to play
I'm gonna lose it anyway
The losing card I'll someday lay
so this is all I have to say.
[REFRAIN]
The only way to win is cheat
And lay it down before I'm beat
and to another give my seat
for that's the only painless feat.
[REFRAIN]
The sword of time will pierce our skins
It doesn't hurt when it begins
But as it works its way on in
The pain grows stronger...watch it grin, but...
[REFRAIN]
A brave man once requested me
to answer questions that are key
is it to be or not to be
and I replied 'oh why ask me?'
[REFRAIN]
'Cause suicide is painless
it brings on many changes
and I can take or leave it if I please.
...and you can do the same thing if you please.