Calculation of Fibinacci and Lucas numbers