The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A078640 Number of numbers between 1 and n-1 that are coprime to n(n+1)(n+2). 0
 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 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,6 COMMENTS Does every integer appear? LINKS EXAMPLE 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. MATHEMATICA Table[Count[Range[1, n-1], _?(CoprimeQ[#, (n(n+1)(n+2))]&)], {n, 80}] (* Harvey P. Dale, May 07 2016 *) PROG (PARI) newphi(v)=local(vl, fl, np); vl=length(v); np=0; for (s=1, v[1], fl=false; for (r=1, vl, if (gcd(s, v[r])>1, fl=true; break)); if (fl==false, np++)); np v=vector(3); for (i=1, 50, v[1]=i; v[2]=i+1; v[3]=i+2; print1(newphi(v)", ")) (PARI) a(n) = sum(i=1, n-1, gcd(i, n*(n+1)*(n+2)) == 1); \\ Michel Marcus, Mar 17 2014 CROSSREFS Sequence in context: A067752 A229942 A025422 * A006374 A193677 A281855 Adjacent sequences:  A078637 A078638 A078639 * A078641 A078642 A078643 KEYWORD nonn AUTHOR Jon Perry, Dec 12 2002 EXTENSIONS More terms from Michel Marcus, Mar 17 2014 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified February 26 17:19 EST 2020. Contains 332293 sequences. (Running on oeis4.)