Finding Arithmetic Sequences from Linear Functions