I'm looking for sequences which have few entries which are odd. A117958 which has a(n) congruent to 1 (mod 2) only for n=m squared, and m not divisible by 3 is an example of what I'm looking for. Is there some easy way to search for such sequences?