(Adds Netanyahu-Gantz meeting, Lieberman statement)
By Jeffrey Heller
JERUSALEM, Sept 23 (Reuters) - After failing to secure a clear election victory twice in six months, Israel's longest-serving prime minister now seems to be calculating that he can stay in power only by sharing it.
Benjamin Netanyahu has invited centrist rival Benny Gantz to join forces in a unity government, saying neither has enough support from respective allies to secure a majority of 61 seats in the 120-member parliament.
Avigdor Lieberman, leader of the far-right Yisrael Beitenu party and a possible kingmaker, said on Monday he believed the only obstacle to such a government was the unresolved question of whether Netanyahu or Gantz would serve first in a rotating premiership.
Weakened by last week's deadlocked parliamentary election, Netanyahu met Gantz at the behest of President Reuven Rivlin, who is tasked with picking a candidate to try to form the next coalition.
But there was little sign that Gantz, head of the Blue and White Party, would agree to a coalition with Netanyahu's right-wing Likud. Gantz cited looming corruption charges against Netanyahu when Blue and White rebutted the prime minister's proposal last week.
Rivlin has called for a unity government - but does not have the legal power to compel Gantz or Netanyahu to form one together. On Monday, Rivlin wrapped up two days of consultations with leaders of all parties that won parliamentary seats in the Sept. 17 ballot.
WHO HAS THE EDGE?
On paper, Netanyahu now has a slim lead over Gantz in building a parliamentary bloc, with pledges of support from 55 members of a right-wing grouping to 54 for Gantz from left-wing and Arab parties. But it also means that neither has secured a governing majority of at least 61 legislators.
Netanyahu's slight edge might move Rivlin to ask him to try to build a narrow coalition if a unity government proves impossible. A nominee gets 28 days to do so, with a possible 14-day extension, before Rivlin can turn to someone else.
Gantz had appeared to have 57 backers but three of the Arab Joint List's 13 members on Monday withdrew support they had pledged to him a day earlier.
Likud won 31 seats to Blue and White's 33, near-complete results show.
Lieberman, whose party won eight seats, would remain the kingmaker if unity efforts fail.
In his meeting with Rivlin, he refused to commit to either Netanyahu or Gantz, citing his own policy differences with Likud's Jewish ultra-Orthodox allies and Blue and White's Arab backers. But Lieberman has also said he wants to ally his party with both Likud and Blue and White in a unity government.