[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070679 Smallest m in range 1..phi(n) such that 9^m == 1 mod n, or 0 if no such number exists. 10
0, 1, 0, 1, 2, 0, 3, 1, 0, 2, 5, 0, 3, 3, 0, 2, 8, 0, 9, 2, 0, 5, 11, 0, 10, 3, 0, 3, 14, 0, 15, 4, 0, 8, 6, 0, 9, 9, 0, 2, 4, 0, 21, 5, 0, 11, 23, 0, 21, 10, 0, 3, 26, 0, 10, 3, 0, 14, 29, 0, 5, 15, 0, 8, 6, 0, 11, 8, 0, 6, 35, 0, 6, 9, 0, 9, 15, 0, 39, 2, 0, 4, 41, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
MATHEMATICA
Table[SelectFirst[Range[EulerPhi[n]], PowerMod[9, #, n]==1&], {n, 90}]/. Missing[ "NotFound"] -> 0 (* Harvey P. Dale, Jan 22 2023 *)
PROG
(PARI) a(n) = {for (i = 1, eulerphi(n), if ((9^i % n) == 1, return(i)); ); return (0); } \\Michel Marcus, Jul 31 2013
(Magma) [0] cat [Modorder(9, n): n in [2..100]]; // Vincenzo Librandi, Apr 01 2014
CROSSREFS
Sequence in context: A269517 A190440 A054372 * A177443 A176919 A220645
KEYWORD
nonn
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 11:13 EDT 2024. Contains 375512 sequences. (Running on oeis4.)