Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Latest commit

 

History

History
14 lines (7 loc) · 543 Bytes

File metadata and controls

14 lines (7 loc) · 543 Bytes

Sequence Decifer

Given 3 integers $a$, $b$ and $c$, find a general formula $f$ that solves $f(1) = a$, $f(2) = b$ and $f(3) = c$.

Usage

From a terminal, inside the folder containing the executable, run the following command:

./sequenceDecifer a b c n

And the general formula, along with other info about the sequence, will be printed in the terminal.

$n$ is an optional argument, that changes the variable character for the formula to show. Default is n, but if you like $x$ as usual polynomial, or any other, you can change it.