OFFSET
1,4
COMMENTS
Two or more numbers are pairwise coprime if no pair of them has a common divisor > 1. A single number is not considered to be pairwise coprime unless it is equal to 1.
LINKS
Ana Rechtman, Décembre 2020, 4e défi (in French), Images des Mathématiques, CNRS, 2020.
FORMULA
a(n) = Product_{p prime <= n} floor(log_p(n)).
EXAMPLE
The a(8) = 3 subsets are {1,2,3,5,7}, {1,3,4,5,7}, {1,3,5,7,8}.
MATHEMATICA
Table[Length[Select[Subsets[Range[n], {PrimePi[n]+1}], CoprimeQ@@#&]], {n, 24}] (* see A186974 for a faster program *)
PROG
(PARI) a(n) = prod(p=1, n, if (isprime(p), logint(n, p), 1)); \\ Michel Marcus, Dec 26 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 09 2019
STATUS
approved