compute fibonacci sequence with generator functions and infinite geometric series