reviewed
approved
Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) a(n) = if(n==0, return(3), return(, 2*a(n-1)-precprime(a(n-1)-1))) \\ Iain Fox, Oct 18 2017
proposed
editing
editing
proposed
(PARI) first(n) = my(res = vector(n)); res[1] = 3; for(i = 2, n, res[i] = 2 * res[i - 1] - precprime(res[i - 1] - 1)); res \\ David A. Corneth, Oct 18 2017
editing
proposed
(PARI) a(n) = if(n==0, return(3), return(2*a(n-1)-precprime(a(n-1)-1))) \\_ _Iain Fox_, Oct 18 2017
reviewed
editing
proposed
reviewed