OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 1/4. - Amiram Eldar, Sep 14 2024
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
30/2 = 15 == 3 (mod 4) and also 31 == 3 (mod 4), therefore 30 is in the sequence.
MATHEMATICA
SequencePosition[Table[If[EvenQ[n], Mod[n/2^IntegerExponent[n, 2], 4], Mod[ n, 4]], {n, 250}], {3, 3}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Nov 20 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, May 03 2005
STATUS
approved