OFFSET
1,2
COMMENTS
From Amiram Eldar, Sep 14 2024: (Start)
The asymptotic density of this sequence is 1/4. (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
20/4 = 5 == 1 (mod 4) and also 21 == 1 (mod 4), therefore 20 is in the sequence.
MATHEMATICA
f[n_] := Mod[n / 2^IntegerExponent[n, 2] - 1, 4]; SequencePosition[Array[f, 250], {0, 0}][[;; , 1]] (* Amiram Eldar, Sep 14 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, May 03 2005
STATUS
approved