Two sequences A={a0,a1,a2,…} and B={b0,b1,b2,…} are defined as follows:
a0=0, a1=1, an=an−1+bn−2forn≥2
b0=1, b1=2, bn=an−2+bn−1forn≥2
What is the remainder when a50+b50 is divided by 5?
Hey, I took the time to write this in LaTeX so yall can read it.
Using a computer program, a_{50} leaves a remainder of 1, and b_{50} leaves a remainder of 2, so a_{50} + b_{50} leaves a remainder of 3.