OFFSET
1,4
COMMENTS
For almost all n, a(n) = phi(30) = 8. It first attains this value at a(361).
EXAMPLE
{1,7,11,13,17,19,23,29} are coprime to 30 in [0, 30]; 1 is nonprime, so a(1) = 1.
{31,37,41,43,47,49,53,59} are coprime to 30 in [30, 60]; 49 is nonprime, so a(2) = 1.
MATHEMATICA
Table[Count[Range[30n-30, 30n], _?(CoprimeQ[#, 30]&&!PrimeQ[#]&)], {n, 110}] (* Harvey P. Dale, Oct 04 2012 *)
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Juri-Stepan Gerasimov, Jul 06 2008
EXTENSIONS
Rewritten and extended by Charles R Greathouse IV, Mar 26 2010
STATUS
approved