[math-fun] Generalized Fibonacci sequences and arithmetic progressions