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!)
A270360 Least positive integer k such that 5^n-1 and k^n-1 are relatively prime. 0
2, 6, 2, 6, 2, 42, 2, 6, 2, 132, 2, 546, 2, 12, 6, 102, 2, 798, 2, 198, 2, 138, 2, 546, 2, 6, 2, 348, 2, 85932, 2, 102, 2, 12, 22, 383838, 2, 12, 6, 2706, 2, 1806, 2, 414, 22, 282, 2, 9282, 2, 264, 2, 318, 2, 1596, 2, 348, 2, 354, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Note that (5^n-1)^n-1 is always relatively prime to 5^n-1.
Based on conjecture given in A270390, a(n) = 2 infinitely often.
LINKS
EXAMPLE
Since 5^2-1 = 24 and 6^2-1 = 35 are relatively prime while 2^2-1, 3^2-1, 4^2-1, and 5^2-1 are not relatively prime to 24, a(5) = 3.
PROG
(Sage)
def min_k(n):
g, k=2, 0
while g!=1:
k=k+1
g=gcd(5^n-1, k^n-1)
return k
print([min_k(n) for n in [1..60]])
(PARI) a(n) = {k=1; while( gcd(5^n-1, k^n-1)!=1, k++); k; }
CROSSREFS
Sequence in context: A232273 A307892 A276152 * A163904 A152780 A340857
KEYWORD
nonn
AUTHOR
Tom Edgar, Mar 16 2016
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 May 9 09:10 EDT 2024. Contains 372347 sequences. (Running on oeis4.)