I have a bike with a ratio of 3.11 to 1, how many links do i need in a chain?
There isn't enough information to determine the chain length from what is given. 

You can read one of the many good articles on how to size a chain on the internet. The chain length depends on the chainring number of teeth, cog number of teeth, chainstay length.