SAN DIEGO -- Richard E. Friedman likes a good thriller. So when he sat down after 10 years of looking into who wrote the Bible, he thought of writing his book in the style of Alfred Hitchcock.

After all, there was a fundamental mystery: Whodunit?

Friedman ended up scuttling the detective-fiction idea. But he adopted the pace and tone of a detective on a case. "Because that's how I feel about scholarship," the 41-year-old professor at the University of California in San Diego said recently. "That's how I feel when I'm doing it."

His book "Who Wrote the Bible?" was published this week. Its strength, other scholars say, is Friedman's persuasive marshaling of his clues and the fact that he lays them out for the public, not merely scholars.

"For many of us, I suspect the Bible is a giant Rubik's cube that the best minds of the Jews and Christians for more than 2,000 years have been trying to solve," said William Propp, a visiting lecturer in Hebrew language and biblical studies at the University of California at San Diego. "If you can come up with a better answer to any of the problems . . . it's an enormous achievement."

Friedman has reached some rather startling conclusions about the Old Testament, conclusions that some scholars may share but that run counter to popular notions. Among people of fundamentalist and Orthodox views, his forthcoming book on the subject may ruffle feathers.

He concludes that certain stories are purely inventions of the authors, dictated by factional political and religious motives. One such story is the tale of the golden calf made by Aaron, which prompted Moses to smash the tablets of the Ten Commandments.

Citing extensive historical and political evidence, Friedman concludes that the story was written by a priest as an attack on the Israelite and Judean religious establishments. Both had excluded his group of priests; Friedman called the passage "a double-duty polemic."

"For a fundamentalist Christian or an Orthodox Jew, that's troubling," Friedman said, "because the Bible is supposed to be inerrant. It's not supposed to be wrong. When the kid in Sunday school looks up and says, 'Is it true?' they say yes. And here's someone else saying no."

It is expected that Old Testament scholars will be most interested in Friedman's argument that the Hebrew prophet Jeremiah, or his scribe Baruch, not only wrote the Book of Jeremiah but also was the unidentified author whom scholars call "the Deuteronomist." Most scholars have agreed that the Deuteronomist, or his school, wrote Deuteronomy and six following books of the Bible (excluding the Book of Ruth).

Friedman also offers evidence that the writing of a Jewish priest, a document called "P" by scholars and containing many laws incorporated into the first five books of the Bible, was written before Deuteronomy and was criticized by Jeremiah as full of lies (Jeremiah 8:8).

Friedman, a professor of Hebrew and comparative literature, relied on a range of disciplines tapped by Bible scholars. They include political history, archeology, literary sensitivity and methods of linguistic analysis developed during the last 15 years.

Friedman even landed a grant to study Old Testament puns, a line of investigation that he says proved especially fruitful. It enabled him to untangle the work of two troublesome authors whose writings, interwoven, could not be separated simply by stylistic analysis.

"I thought I was going to get a Golden Fleece award for getting a grant to study puns in the Bible," said Friedman, referring to the annual prize given by Sen. William Proxmire (D-Wis.) for extravagant wastes of public money. "But it turned out to be a major piece of evidence."

Friedman believes that all the sex scenes in the Old Testament were written by the same author, who he says could have been a woman. He is now exploring further the writings of that author, believing he may have happened upon "the first great prose writer," living about eight centuries before Jesus.

"I've discovered . . . an extraordinary, great author whose work runs through several books of the Bible," Friedman said in an interview.

"So that if I'm right in identifying that person, we would have for the first time a fairly lengthy work covering many different stories of different periods, all written by the same person. Which would mean the first great prose writer ever."

Friedman's interest in the Bible did not begin with curiosity about authorship.

A former seminarian, he said he was interested originally only in what the Bible said and how that affected people. Then he encountered a professor at Jewish Theological Seminary in New York in the late 1960s who "made me realize there was really greatness in it."

Friedman left the seminary, choosing instead to become a scholar. He enrolled at Harvard University, from which he received a doctor of theology degree in 1978. Two years earlier, he had become the only professor of biblical studies at the University of California at San Diego.

According to Friedman, Bible scholars have questioned for many centuries the tradition that the first five books of the Old Testament were written by Moses.

But only in the late 19th century did it become an accepted theory among scholars that the books were in fact composed by combining and interweaving four documents.

Such views have long been controversial. Earlier proponents had their lives threatened and their books banned, and some were imprisoned or forced to recant.

One 19th century Scottish scholar and editor of the Encyclopaedia Britannica was tried for heresy and expelled from his academic chair.

By the 1930s, however, orthodox scholars who had participated in the debate had all but withdrawn from the field. By the time Friedman embarked on his work in the 1970s, the idea of composite authorship was well accepted among Bible scholars but few books on the subject had been directed to the public.

"His version is more persuasive than previously proposed syntheses," said Propp, who described Friedman's book as especially persuasive because he analyzes not just one isolated part but a vast chunk of the Old Testament from Genesis through Jeremiah.

"The main thing of the book is actually not naming the authors, though that may be what will interest people most," Friedman said.

"It's being able to place them in history and see why they told the story this way and not that way -- and occasionally, that establishes that a story in the Bible is true or that it's not."

As he puts it in his book, "Reading the Bible will never be quite the same."