is allegany in ny or pa?
<answer> NY <context> For the village in this town, see Allegany (village), New York. For the county in New York, see Allegany County, New York. For other uses, see Allegany (disambiguation). Allegany is a town in Cattaraugus County, New York, United States. The population was 8,004 at the 2010 census. The Town of Allegany is on the south border of the county, west of the City of Olean. There is a village named Allegany inside this town.