Efficient Algorithm for divisibility discovery on recursive sequences