OFFSET
0,1
MAPLE
find_A055095_is_2_composites := proc(upto_n) local j, a; a := []; for j from 1 to upto_n do if(-1 = (j - wt(GrayCode(qrs2bincode((2*j)+1))))) then if(not isprime((2*j)+1)) then a := [op(a), ((2*j)+1)]; fi; fi; od; RETURN(a); end;
MATHEMATICA
A005811[n_] := Length[Length /@ Split[IntegerDigits[n, 2]]];
A055094[n_] := With[{rr = Table[Mod[k^2, n], {k, 1, n-1}] // Union}, Boole[MemberQ[rr, #]] & /@ Range[n-1]] // FromDigits[#, 2]&;
A055131 = Position[Array[A055095, 2000], 2] // Flatten // Select[#, CompositeQ]& (* Jean-François Alcover, Mar 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 04 2000
EXTENSIONS
More terms from James A. Sellers, Apr 21 2000
STATUS
approved