Given the integer sequence A. Get a new sequence. If the sequence number of the element A is divided by 3 completely, then this element is not included in the new sequence; if the remainder of dividing the sequence number by 3 is 1, then the double value of this element is added to the new sequence; otherwise, the item is added to the new sequence unchanged.
How not to include items divisible by 3? What ways are there?