The function f is defined on the positive integers as follows:
f(1)=5, and for n≥1:f(n+1)f(n+1)=3f(n)+1=21f(n)if f(n) is oddif f(n) is even
The function g is defined on the positive integers as follows:
g(1)=3, and for n≥1:g(n+1)g(n+1)=g(n)+5=21g(n)if g(n) is oddif g(n) is even
What is the value of f(1000)−g(1000)?