OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms n = 1..5000 from G. C. Greubel)
FORMULA
Binomial transform of [1, 1, 1, 1, -3, 5, -7, 9, -11, 13, ...]. Binomial transform of this sequence is A048481. - Gary W. Adamson, Oct 23 2007
EXAMPLE
a(81) = 392 = 2^3*7^2 has 4 unitary divisors, {1, 392, 8, 49}, and 4 divides 392.
MATHEMATICA
okQ[n_] := Divisible[n, DivisorSum[n, Boole[CoprimeQ[#, n/#]]&]]; Select[ Range[300], okQ] (* Jean-François Alcover, Dec 05 2015 *)
Select[Range[270], Divisible[#, 2^PrimeNu[#]] &] (* Amiram Eldar, Jul 16 2019 *)
PROG
(PARI) isok(n) = !(n % sumdiv(n, d, gcd(d, n/d)==1)); \\ Michel Marcus, Feb 25 2014
(PARI) isok(n) = !(n % 2^omega(n)); \\ Amiram Eldar, Jul 16 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved