OFFSET
1,1
COMMENTS
FORMULA
a(n) = prime(n+3) for n > 2. [Charles R Greathouse IV, Feb 09 2012]
EXAMPLE
5 is a member because 5 can be written in two ways: 5 = 2+3; 19 because 19 = 3+5+11.
PROG
(PARI) a(n)=if(n>2, prime(n+3), 3+2*n) \\ Charles R Greathouse IV, Feb 09 2012
(Python)
from sympy import prime
a = lambda n: prime(n+3) if n>2 else 3+(n<<1) # Darío Clavijo, Oct 23 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Jun 21 2005; corrected Jun 23 2005
EXTENSIONS
Edited and extended by Ray Chandler, Jul 03 2005
STATUS
approved