0

A binary recurrence sequence is a recursively-defined sequence of the following form:
This is a generalization of the Fibonacci (x = 1, y = 2, a = [1, 1], alpha = 1, beta = 1) sequence and the Lucas (x = 1, y = 2, a = [2, 1], alpha = 1, beta = 1) sequence.
The Challenge
Given n, x, y, a, alp...