The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A240661 Least k such that 6^k == -1 (mod prime(n)), or 0 if no such k exists. 1
0, 0, 0, 1, 5, 6, 8, 0, 0, 7, 3, 2, 20, 0, 0, 13, 29, 30, 0, 0, 18, 39, 41, 44, 6, 5, 51, 53, 54, 56, 63, 65, 68, 0, 0, 75, 78, 0, 0, 0, 89, 30, 0, 48, 7, 99, 0, 111, 113, 114, 116, 0, 10, 125, 128, 0, 67, 135, 138, 28, 0, 73, 0, 0, 26, 79, 0, 28, 173, 58, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
The least k, if it exists, such that prime(n) divides 6^k + 1.
LINKS
FORMULA
a(n) = A211242(n)/2 if A211242(n) is even, otherwise 0.
MATHEMATICA
Table[p = Prime[n]; s = Select[Range[p/2], PowerMod[6, #, p] == p - 1 &, 1]; If[s == {}, 0, s[[1]]], {n, 100}]
CROSSREFS
Cf. A211242 (order of 6 mod prime(n)).
Sequence in context: A048090 A048027 A294071 * A153430 A329089 A100379
KEYWORD
nonn
AUTHOR
T. D. Noe, Apr 14 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 6 18:47 EDT 2024. Contains 373134 sequences. (Running on oeis4.)