OFFSET
1,2
COMMENTS
Also k is included if (and only if) the highest power of 2 dividing k is <= the largest odd divisor of k.
EXAMPLE
20 = 4 * 5, where 4 is highest power of 2 dividing 20 and 5 is the largest odd number dividing 20. 4 is <= 5 (and, not coincidentally, 5^2 >= 20), so 20 is in the sequence.
MAPLE
isA116883 := proc(n) local dvs, hod, i ; dvs := convert(numtheory[divisors](n), list) ; for i from 1 to nops(dvs) do hod := op(-i, dvs) ; if hod mod 2 = 1 then RETURN(hod^2 >= n) ; fi ; od ; end: for n from 1 to 200 do if isA116883(n) then printf("%d, ", n) ; fi ; od ; # R. J. Mathar, May 10 2007
MATHEMATICA
Select[Range[100], Last[Select[Divisors[#], OddQ]]^2>=#&] (* Harvey P. Dale, Nov 10 2013 *)
Select[Range[100], # >= 4^IntegerExponent[#, 2] &] (* Amiram Eldar, Jun 11 2022 *)
PROG
(Python)
from itertools import count, islice
def A116883_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:n==1 or (n&-n)**2<n, count(max(startvalue, 1)))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Feb 24 2006
EXTENSIONS
More terms from R. J. Mathar, May 10 2007
STATUS
approved