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!)
A366671 Smallest prime dividing 8^n + 1. 5
2, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5, 3, 193, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5, 3, 641, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5, 3, 193, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5, 3, 769, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) = 3 if n is odd. a(n) = 5 if n == 2 (mod 4). - Robert Israel, Nov 20 2023
LINKS
FORMULA
a(n) = A020639(A062395(n)). - Paul F. Marrero Romero, Oct 20 2023
a(n) = A002586(3*n) for n >= 1. - Robert Israel, Nov 20 2023
MAPLE
P1000:= mul(ithprime(i), i= 4..1000):
f:= proc(n) local t;
if n::odd then return 3 elif n mod 4 = 2 then return 5 fi;
t:= igcd(8^n+1, P1000);
if t <> 1 then min(numtheory:-factorset(t)) else min(numtheory:-factorset(8^n+1)) fi
end proc:
map(f, [$0..100]); # Robert Israel, Nov 20 2023
MATHEMATICA
Table[FactorInteger[8^n + 1][[1, 1]], {n, 0, 78}] (* Paul F. Marrero Romero, Oct 20 2023 *)
PROG
(Python)
from sympy import primefactors
def A366671(n): return min(primefactors((1<<3*n)+1)) # Chai Wah Wu, Oct 16 2023
CROSSREFS
Sequence in context: A244609 A209195 A113222 * A060444 A002587 A152814
KEYWORD
nonn
AUTHOR
Sean A. Irvine, Oct 15 2023
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 9 05:47 EDT 2024. Contains 375027 sequences. (Running on oeis4.)