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!)
A219018 Smallest number k > 0 such that k^n + 1 has exactly n distinct prime factors. 1
1, 3, 5, 43, 17, 47, 51, 1697, 59, 512, 521, 3255, 8189, 18951, 656 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(16) > 2 * 10^6; a(18) = 19208. - Daniel Suteu, Feb 06 2023
LINKS
EXAMPLE
a(3) = 5 is the smallest number of the set {k(i)} = {5, 9, 10, 11, 12, 13, 14, 19,….} where k(i)^3 + 1 has exactly 3 distinct prime factors.
MAPLE
with(numtheory) :for n from 1 to 10 do:ii:=0:for k from 1 to 10^10 while(ii=0) do:x:=k^n+1:y:=factorset(x):n1:=nops(y):if n1=n then ii:=1: printf ( "%d %d \n", n, k):
else fi:od:od:
MATHEMATICA
L = {}; Do[n = 1; While[Length[FactorInteger[n^k + 1]] != k, n++]; Print@AppendTo[L, n], {k, 15}] (* Giovanni Resta, Nov 09 2012 *)
PROG
(PARI) a(n) = my(k=1); while (omega(k^n+1) != n, k++); k; \\ Daniel Suteu, Feb 06 2023
CROSSREFS
Sequence in context: A258933 A060433 A216085 * A191088 A191089 A199345
KEYWORD
nonn,more,hard
AUTHOR
Michel Lagneau, Nov 09 2012
EXTENSIONS
Definition clarified by Daniel Suteu, Feb 06 2023
a(13)-a(15) from Daniel Suteu, Feb 06 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 April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)