NEW DELHI (Reuters) - Indian police on Tuesday arrested 31 Rohingya Muslims stranded on the border after they were denied entry into Bangladesh and border officials failed to agree on what to do with members of the community fleeing a crackdown in India.

Slideshow ( 2 images )

India’s Hindu nationalist government regards the Rohingya as illegal aliens and a security risk, and has ordered that tens of thousands of them who live in scattered settlements and slums around the country be identified and repatriated.

The stranded Rohingya, including women and children, had been stuck in no-man’s land on Bangladesh’s border with India since Friday. Two rounds of talks between border officials failed to find a solution.

“We have arrested them under the Foreigners Act on charges of entering India without valid travel documents,” said Ajay Kumar Das, a police official in the northeast state of Tripura that borders Bangladesh.

Hundreds of thousands of members of mostly Buddhist Myanmar’s Rohingya community have left their homes in Myanmar’s Rakhine State over the decades, most fleeing military crackdowns and discrimination.

Many have sought shelter in Bangladesh - where nearly one million live - but others have ended up in India, Southeast Asia and beyond.

The 31 had been living in Kashmir and some of them carried identity cards issued by the U.N. refugee agency, UNHCR.

The UNHCR has issued about 16,500 Rohingya in India with identity cards that it says can help “prevent harassment, arbitrary arrests, detention and deportation.” India does not recognize the cards.

India’s deportation of seven Rohingya men to Myanmar in October raised fears in the community of a wider crackdown and prompted hundreds of Rohingya families to leave India for Bangladesh.

Indian police arrested another group of 30 Rohingya on Monday in the northeastern state of Assam, where they had moved after living for six years in Jammu and Kashmir, India’s only Muslim majority state.

Members of the group said they were looking for work after losing their jobs in Kashmir, police said.

“The arrests were made during a routine check by police and after interrogation we found they are all from Myanmar,” said Imon Saikia, a police official in the city of Karimganj where the group was arrested.