Sum of terms of recurrence sequences in the solution sets of generalized Pell equations | Synapse