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!)
A308046 a(n) = 2*nextprime(n - 1) - 2*n, where nextprime(n) is the smallest prime > n. 0
2, 0, 0, 2, 0, 2, 0, 6, 4, 2, 0, 2, 0, 6, 4, 2, 0, 2, 0, 6, 4, 2, 0, 10, 8, 6, 4, 2, 0, 2, 0, 10, 8, 6, 4, 2, 0, 6, 4, 2, 0, 2, 0, 6, 4, 2, 0, 10, 8, 6, 4, 2, 0, 10, 8, 6, 4, 2, 0, 2, 0, 10, 8, 6, 4, 2, 0, 6, 4, 2, 0, 2, 0, 10, 8, 6, 4, 2, 0, 6, 4, 2, 0, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For n > 1, a(n) is the difference of the larger and smaller part of the single partition of 2n into two parts whose larger part is the smallest prime > n - 1.
LINKS
FORMULA
a(n) = 2*A151800(n - 1) - 2*n.
EXAMPLE
a(9) = 4; the smallest prime > 8 is 11, 2*9-11 = 7 and 11-7 = 4.
MATHEMATICA
Table[2 NextPrime[n - 1, 1] - 2 n, {n, 100}]
CROSSREFS
Cf. A151800.
Sequence in context: A339441 A226914 A110036 * A289323 A086937 A213024
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 10 2019
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 10:41 EDT 2024. Contains 371967 sequences. (Running on oeis4.)