OFFSET
1,2
COMMENTS
Probably a(n) ~ k * 2^n where k is about 1.005712.... - Charles R Greathouse IV, Oct 07 2016, corrected Oct 21 2016
EXAMPLE
a(2)=a(1)+2=1+2=3, since a(1)=1 is odd and 2 is the smallest prime >1.
a(3)=3+5=8, since a(2)=3 is odd and 5 is the smallest prime >3.
Then a(4)=8+7=15 since a(3)=8 is even and 7 is the largest prime <8. Etc.
MATHEMATICA
NestList[# + NextPrime[#, -1 + 2 Boole[OddQ@ #]] &, 1, 35] (* Michael De Vlieger, Oct 07 2016 *)
PROG
(PARI) lista(nn)=print1(a = 1, ", "); for (n=2, nn, if (a % 2, a += nextprime(a+1), a += precprime(a-1)); print1(a, ", "); ); \\ Michel Marcus, Oct 07 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Oct 06 2016
STATUS
approved