This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A186994 #25 Dec 09 2014 04:56:32 %S A186994 1,1,1,1,2,1,2,1,3,2,6,1,6,2,3,2,8,1,8,2,4,2,8,1,8,4,8,6,24,1,24,6,10, %T A186994 6,15,2,30,6,10,3,30,2,30,6,5,6,30,2,30,6,20,12,60,4,30,6,20,12,60,2, %U A186994 60,12,10,12,36,4,72,12,24,3,72,4,72,12,12,12,36 %N A186994 Number of maximal subsets of {1, 2, ..., n} containing n and having pairwise coprime elements. %C A186994 The elements of a maximal subset are 1, n, and powers of primes that have no common factor with n. The cardinalities of maximal subsets is A186971(n). %H A186994 Alois P. Heinz, <a href="/A186994/b186994.txt">Table of n, a(n) for n = 1..10000</a> %F A186994 a(n) = Product_{p in Primes with p<n and GCD(n,p)=1} floor(log_p(n)). %e A186994 a(5) = 2 because there are 2 maximal subsets of {1,2,3,4,5} containing 5 and having pairwise coprime elements: {1,2,3,5}, {1,3,4,5}. %e A186994 a(9) = 3, the maximal subsets are {1,2,5,7,9}, {1,4,5,7,9}, {1,5,7,8,9}. %p A186994 with(numtheory): %p A186994 a:= n-> mul(ilog[j](n), j={ithprime(i)$i=1..pi(n)} minus factorset(n)): %p A186994 seq(a(n), n=1..200); %t A186994 a[n_] := Product[Log[p, n] // Floor, {p, Select[Range[n-1], PrimeQ[#] && GCD[n, #] == 1&]}]; Table[a[n], {n, 1, 200}] (* _Jean-François Alcover_, Dec 09 2014, after _Alois P. Heinz_ *) %Y A186994 Cf. A186971. Rightmost elements in rows of A186972. %K A186994 nonn,look,hear %O A186994 1,5 %A A186994 _Alois P. Heinz_, Mar 01 2011