How to check whether a given number n belongs to fibanocii series?