editing
approved
Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
editing
approved
with(numtheory); P:=proc(q) local n;
for n from 1 to q do if issqrfree(n) then
if type(add(a, a=convert(n, base, 2)), odd) then print(n);
fi; fi; od; end: P(10^3); # Paolo P. Lava, Oct 09 2013
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Amiram Eldar, <a href="/A230048/b230048.txt">Table of n, a(n) for n = 1..10000</a>
odiousQ[n_] := OddQ @ DigitCount[n, 2][[1]]; Select[Range[200], odiousQ[#] && SquareFreeQ[#] &] (* Amiram Eldar, Dec 10 2019 *)
approved
editing
editing
approved
(PARI) is(n)=hammingweight(n)%2 && issquarefree(n) \\ Charles R Greathouse IV, Mar 18 2014
approved
editing
proposed
approved
editing
proposed