OFFSET
1,7
COMMENTS
Largest value of A001221(k) for 1 <= k <= n such that gcd(k, n) = 1. - Michael De Vlieger, Aug 10 2017
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Z. Abel, E. Demaine, M. Demaine, H. Matsui and G. Rote, Common Developments of Several Different Orthogonal Boxes, CCCG 2011, Toronto ON, August 10-12, 2011.
FORMULA
a(n) << log n/log log n. - Charles R Greathouse IV, Aug 10 2017
EXAMPLE
For n=60 a(n)=1 since in RRS[ 60 ] only 1 and prime powers occur (see A051250).
MATHEMATICA
Table[Max@ Map[PrimeNu, Cases[Range[n - 1], k_ /; CoprimeQ[n, k]]] /. k_ /; ! IntegerQ@ k -> 0, {n, 105}] (* Michael De Vlieger, Aug 10 2017 *)
PROG
(PARI) a(n)=my(k=1, s); forprime(p=2, , if(n%p==0, next); k*=p; if(k>n, return(s)); s++) \\ Charles R Greathouse IV, Aug 10 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved