Possibility of using index sequence search to search for all numbers divisible by 3 [closed]

  algorithm, c++

I have a task to implement seraching all numbers in array divisible by 3 by index sequence search.
But I’m not sure that it’s good idea. Am I wrong?
Maybe there is an option how to sort/group sequence so such numbers can be easily serach by index sequence search?

Source: Windows Questions C++