OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..807
EXAMPLE
12 is divisible by 2 and 3. The positive integers which are <= 12 and which are divisible by 2 or 3, but not by both 2 and 3, are: 2, 3, 4, 8, 9, 10. a(12) = the product of these integers, which is 17280.
MATHEMATICA
Table[Times @@ Select[Range@ n, Function[k, Total@ Boole@ Map[Divisible[k, #] &, FactorInteger[n][[All, 1]]] == 1]], {n, 31}] (* Michael De Vlieger, Oct 01 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 30 2006
EXTENSIONS
Corrected and extended by Joshua Zucker, Aug 12 2006
STATUS
approved