The issue with the given method is that you can’t say that the sequence which you are getting is a fibonacci sequence.
Here, you are getting 1,1,2,3,5,8,13,…
Is it a Fibonacci sequence ?
What If 100th term is not the sum of previous two terms ? How can you prove that it is a Fibonacci sequence based on some initial numbers ?
This method is mentioned in the above math.stackexchange link also but it is for understanding and might work in exams but mathematics does not work like that.
You need to prove the recurrence which a Fibonacci sequence follows and here you can’t get the remainder as 0 because Fibonacci sequence does not end somewhere. It is defined for all natural numbers.
Here, you have to do the reverse procedure to get the desired recurrence which you do to get the generating function from a recurrence.