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!)
A108077 Largest prime p such that p-1 divides n. 2
2, 3, 2, 5, 2, 7, 2, 5, 2, 11, 2, 13, 2, 3, 2, 17, 2, 19, 2, 11, 2, 23, 2, 13, 2, 3, 2, 29, 2, 31, 2, 17, 2, 3, 2, 37, 2, 3, 2, 41, 2, 43, 2, 23, 2, 47, 2, 17, 2, 11, 2, 53, 2, 19, 2, 29, 2, 59, 2, 61, 2, 3, 2, 17, 2, 67, 2, 5, 2, 71, 2, 73, 2, 3, 2, 5, 2, 79, 2, 41, 2, 83, 2, 43 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
with(numtheory): for n from 1 to 110 do div:=divisors(n): A:=[seq(div[j]+1, j=1..tau(n))]: B:={}: for i from 1 to tau(n) do if isprime(A[i])=true then B:=B union {A[i]} else B:=B: fi: od: C:=convert(B, list): a[n]:=C[nops(C)] od: seq(a[n], n=1..110); # Emeric Deutsch, Aug 05 2005
PROG
(PARI) A108077(n) = fordiv(n, d, if(isprime(1+(n/d)), return(1+(n/d)))); \\ Antti Karttunen, Dec 19 2018
CROSSREFS
Largest term in row n of A108939.
Sequence in context: A079868 A280697 A088444 * A248737 A141310 A007389
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Jul 20 2005
EXTENSIONS
More terms from Emeric Deutsch, Aug 05 2005
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 18 13:24 EDT 2024. Contains 371780 sequences. (Running on oeis4.)