[go: up one dir, main page]

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!)
A375752 a(n) is the difference between T=n*(n+1)/2 and the largest prime not exceeding T. 0
0, 1, 3, 2, 2, 5, 5, 2, 2, 5, 5, 2, 2, 7, 5, 2, 4, 9, 11, 2, 2, 5, 7, 8, 2, 5, 5, 2, 2, 5, 5, 4, 2, 11, 5, 2, 2, 7, 9, 2, 16, 5, 7, 2, 12, 5, 5, 2, 16, 5, 5, 2, 2, 9, 13, 16, 2, 11, 7, 2, 2, 5, 11, 2, 4, 5, 5, 4, 8, 5, 7, 2, 8, 7, 9, 2, 2, 23, 11, 2, 12, 17, 11, 12, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,3
LINKS
FORMULA
a(n) = A000217(n) - A065384(n). - Michel Marcus, Aug 27 2024
PROG
(PARI) a(n) = my(t=n*(n+1)/2); t - precprime(t)
(Python)
from sympy import prevprime
def A375752(n): return (t:=n*(n+1)//2) - prevprime(t) # Karl-Heinz Hofmann, Aug 27 2024
CROSSREFS
Sequence in context: A282161 A205675 A342331 * A058608 A112196 A021035
KEYWORD
nonn,easy,new
AUTHOR
Hugo Pfoertner, Aug 26 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 August 29 15:03 EDT 2024. Contains 375517 sequences. (Running on oeis4.)