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.
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
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 10 2019
STATUS
approved