<Tr> <Td> 1810 </Td> <Td> 1,508 </Td> <Td> </Td> <Td>--</Td> </Tr> <Tr> <Td> 1820 </Td> <Td> 2,095 </Td> <Td> </Td> <Td> 38.9% </Td> </Tr> <Tr> <Td> 1830 </Td> <Td> 8,668 </Td> <Td> </Td> <Td> 313.7% </Td> </Tr> <Tr> <Td> 1840 </Td> <Td> 18,213 </Td> <Td> </Td> <Td> 110.1% </Td> </Tr>

How far is it from buffalo new york to new york city