OFFSET
2,2
COMMENTS
All nonzero values are >= 7.
EXAMPLE
a(3) = 7 because the powers of 2 mod 7 are 2,4,1,2,4,1,2,4,1,2,4,... (and 3 never appears).
PROG
(PARI) a216185(n) = {local(k, m); if((omega(n) == 1) && (Mod(n, 2) == Mod(0, 2)), return(0), k=3; while(gcd(k, n) != 1 || (sum(m=0, eulerphi(k) - 1, (Mod(2, k)^m == Mod(n, k))) >= 1), k = k+2)); k} \\ Michael B. Porter, Mar 16 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Lowell, Mar 11 2013
EXTENSIONS
a(34)-a(76) from Michael B. Porter, Mar 16 2013
STATUS
approved