Number Pattern Solver