editing
approved
editing
approved
Table[Count[Range[1, n-1], _?(CoprimeQ[#, (n(n+1)(n+2))]&)], {n, 80}] (* Harvey P. Dale, May 07 2016 *)
approved
editing
proposed
approved
editing
proposed
a(10) is the number of numbers between 1 and 9 that are coprime to 10.*11.*12, which leaves 1 and 7, hence a(10) = 2.
proposed
editing
editing
proposed
More terms from Michel Marcus, Mar 17 2014
1, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 2, 3, 4, 5, 5, 5, 4, 4, 5, 6, 6, 6, 6, 7, 8, 6, 7, 8, 9, 9, 6, 7, 8, 11, 10, 8, 9, 9, 11, 11, 10, 10, 11, 14, 13, 12, 11, 12, 15, 16, 13, 12, 11, 14, 17, 14, 15, 15, 16, 17, 14, 15, 15, 19, 20, 14, 15, 16, 23, 23, 18, 18
(PARI) a(n) = sum(i=1, n-1, gcd(i, n*(n+1)*(n+2)) == 1); \\ Michel Marcus, Mar 17 2014
approved
editing
_Jon Perry (perry(AT)globalnet.co.uk), _, Dec 12 2002
Numbers Number of numbers between 1 and n-1 that are coprime to n(n+1)(n+2).
nonn,new
nonn