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!)
A260946 Least positive integer k < prime(n) such that i^2 + j^2 = k^2 for some 0 < i < j with i*j*k a primitive root modulo prime(n), or 0 if no such k exists. 3
0, 0, 0, 0, 10, 0, 15, 5, 5, 5, 0, 17, 5, 15, 5, 10, 10, 26, 10, 17, 5, 5, 5, 5, 5, 13, 15, 5, 10, 15, 15, 10, 13, 13, 5, 17, 5, 10, 5, 10, 10, 10, 25, 61, 10, 13, 17, 25, 5, 50, 15, 13, 17, 10, 15, 5, 5, 10, 17, 10, 26, 10, 10, 17, 5, 10, 5, 5, 5, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
Conjecture: a(n) > 0 for all n > 11. In other words, for any prime p > 31 there are a,b,c among 1,...,p-1 with a^2 + b^2 = c^2 such that a*b*c is a primitive root modulo p.
LINKS
EXAMPLE
a(5) = 10 since 10^2 = 6^2 + 8^2, and 6*8*10 = 480 is a primitive root modulo prime(5) = 11.
MATHEMATICA
SQ[n_]:=IntegerQ[Sqrt[n]]
Dv[n_]:=Divisors[Prime[n]-1]
Do[Do[If[SQ[k^2-j^2]==False, Goto[aa]]; Do[If[Mod[(Sqrt[k^2-j^2]j*k)^(Part[Dv[n], t]), Prime[n]]==1, Goto[aa]]; Continue, {t, 1, Length[Dv[n]]-1}]; Print[n, " ", k]; Goto[bb]; Label[aa]; Continue, {k, 1, Prime[n]-1}, {j, 1, k-1}]; Print[n, " ", 0]; Label[bb]; Continue, {n, 1, 70}]
CROSSREFS
Sequence in context: A320380 A088001 A344071 * A019091 A256974 A070650
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Aug 05 2015
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 April 24 15:18 EDT 2024. Contains 371960 sequences. (Running on oeis4.)