0

Math golf
This challenge is about writing code that outputs the smallest formula possible for a sequence of position integers.
Input
A file consisting of a sequence of comma separated positive integers per line. For example
1, 2, 7
1, 4, 36, 400, 4900
96, 1280, 17920, 258048, 378...