aboutsummaryrefslogtreecommitdiff

PatternToFormula

A simple Kotlin program to create formulas from a pattern (3 numbers after each other)

Examples:

Enter numbers: 7, 19, 67
Formula: 4^n+3
Pattern: 7, 19, 67, 259, 1027, 4099, 16387, 65539, 262147, 1048579, 4194307, 16777219, 67108867, 268435459, 1073741827, 2147483647, 2147483647, 2147483647, 2147483647, 214748364```