The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A085382 Sum of p = prime(n) and largest prime divisor of p-1. 0
5, 7, 10, 16, 16, 19, 22, 34, 36, 36, 40, 46, 50, 70, 66, 88, 66, 78, 78, 76, 92, 124, 100, 100, 106, 120, 160, 112, 120, 134, 144, 154, 162, 186, 156, 170, 166, 250, 216, 268, 186, 210, 196, 204, 210, 218, 260, 340, 248, 262, 256, 246, 256, 259, 394, 336, 276, 300 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
FORMULA
a(n) = p + A006530(p-1) where p = prime(n).
EXAMPLE
a(2) = prime(2) + gpf(prime(2) - 1) = 3 + gpf(2) = 3 + 2 = 5.
PROG
(PARI) cminuspm2(n) = \\ prime + maxprime of prime-1
{ forprime(x=5, n, forstep(p=x, 2, -1, if(isprime(p) & (x-1)%p==0, print1(x+p, ", "); break); ) ) }
(PARI) a(n) = my(p=prime(n)); p+vecmax(factor(p-1)[, 1]); \\ Michel Marcus, May 07 2024
CROSSREFS
Sequence in context: A196936 A188196 A048584 * A250194 A314293 A073895
KEYWORD
easy,nonn,changed
AUTHOR
Cino Hilliard, Aug 12 2003
EXTENSIONS
Offset 2 and a(2) from Michel Marcus, May 07 2024
Edited by Jon E. Schoenfield, May 07 2024
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 21 19:35 EDT 2024. Contains 372738 sequences. (Running on oeis4.)