OFFSET
1,2
COMMENTS
Also positions of 1's and 4's in A003324.
Also positions of 0's in A292077. - Jianing Song, Nov 27 2021
Numbers of the form (2*k+1) * 2^e where k+e is even. In other words, union of {(4*m+1) * 2^(2t)} and {(4*m+3) * 2^(2t+1)}, where m >= 0, t >= 0.
Numbers whose quaternary (base-4) expansion ends in 100...00 or 1200..00 or 3200..00. Trailing 0's are not necessary.
There are precisely 2^(N-1) terms <= 2^N for every N >= 1.
Complement of A338691. - Jianing Song, Apr 26 2021
LINKS
Jianing Song, Table of n, a(n) for n = 1..8192
Kevin Ryde, Iterations of the Alternate Paperfolding Curve, see index "TurnLeft" with a(n) = TurnLeft(n-1).
FORMULA
a(n) = A343500(n)/2. - Jianing Song, Apr 26 2021
EXAMPLE
14 is a term since it is in the family {(4*m+3) * 2^(2t+1)} with m = 1, t = 0.
16 is a term since it is in the family {(4*m+1) * 2^(2t)} with m = 0, t = 2.
PROG
(PARI) isA338692(n) = my(e=valuation(n, 2), k=bittest(n, e+1)); !((k+e)%2)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Apr 24 2021
STATUS
approved