Question: Input: The starting four elements of a sequence that follows the pattern: a,(ar+d),(ar^2+d),(ar^3+d),...... Format: Four numbers each separated by space. Terminated by . Goal: Find
Input: The starting four elements of a sequence that follows the pattern:
a,(ar+d),(ar^2+d),(ar^3+d),......
Format: Four numbers each separated by space. Terminated by .
Goal: Find integers a,r and d with a!=0 and r!=0 that satisfy the input pattern.
Output: Print the values of a ,r , and d, each separated by a space. Terminate the line with a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
