OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is in the sequence because 6 has 4 divisors {1,2,3,6} therefore 2 non-divisors {4,5}, 4 + 5 = 9 and 9 is odd.
MAPLE
filter:= n -> evalb(n+1 mod 4 <= 1) = (issqr(n) or issqr(n/2)):
select(filter, [$1..200]); # Robert Israel, Dec 11 2016
MATHEMATICA
Select[Range[150], Mod[#1 ((#1 + 1)/2) - DivisorSigma[1, #1], 2] == 1 & ]
Select[Range[150], OddQ[Total[Complement[Range[#], Divisors[#]]]]&] (* Harvey P. Dale, Jul 29 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Dec 10 2016
STATUS
approved