### Solution:
#### Part (1) Proof:
Given the recursive formula for the sequence {an}:
an+1=Aan+B
We subtract 1−AB from both sides of the equation:
an+1−1−AB=Aan+B−1−AB
Simplifying the right side:
=Aan+1−AB(1−A)−1−AB
=Aan−1−ABA
=A(an−1−AB)
Therefore, the sequence {an−1−AB} is a geometric sequence with common ratio A. This completes the proof.
#### Part (2) Solution:
Given A=2 and B=−1, we substitute these values into the formula for the sequence {an}:
an+1=2an−1
We know from part (1) that {an−1−AB} is a geometric sequence. Substituting A=2 and B=−1:
an−1=2n−1(a1−1)
Given a1=2, we find a1−1=1, so:
an−1=2n−1
an=2n−1+1
For the sequence {bn}:
bn=anan+1an−1=(2n−1+1)(2n+1)2n−1
This simplifies to:
bn=2n−1+11−2n+11
To find the sum Tn of the first n terms of {bn}:
Tn=(20+11−21+11)+(21+11−22+11)+⋯+(2n−1+11−2n+11)
Notice the telescoping series, where most terms cancel out, leaving:
Tn=21−2n+11
Simplifying the expression:
Tn=2(2n+1)2n−1
Therefore, the sum of the first n terms of the sequence {bn} is 2(2n+1)2n−1.