login

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”).

A152184
Primes in A119565.
0
2, 3, 5, 7, 17, 23, 31, 101, 401, 4657, 15823, 80783, 139091, 541061, 1400251, 27801973, 82419121, 2147261729, 12554734117, 16473868771, 98268480059747, 389987558038815689, 13332015897088468423, 315610157790100954828793509, 21710126322471651344856594580559
OFFSET
1,1
MATHEMATICA
(*A119565*) a[0] = 1; a[1] = 2; a[2] = 3; a[3] = 5; a[4] = 7; a[5] = 10; a[n_] := a[n] = Floor[a[n - 1] + 1 + a[n - 2]/6]; Flatten[Table[If[PrimeQ[a[n]], a[n], {}], {n, 0, 300}]]
Select[Join[{1, 2, 3, 5}, RecurrenceTable[{a[4]==7, a[5]==10, a[n] == Floor[ a[n-1]+ 1+a[n-2]/6]}, a, {n, 600}]], PrimeQ] (* Harvey P. Dale, Mar 15 2016 *)
PROG
(PARI) a=concat([1, 2, 3, 5, 7, 10], vector(95)); for(i=7, #a, a[i]=1+a[i-1]+a[i-2]\6); select(isprime, a) \\ Charles R Greathouse IV, Nov 07 2011
CROSSREFS
Cf. A119565.
Sequence in context: A066277 A360383 A164134 * A135948 A164042 A248344
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Nov 28 2008
EXTENSIONS
More terms from Harvey P. Dale, Mar 15 2016
STATUS
approved