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

A350617
Odd-valued terms in A350877.
5
1, 3, 3, 1, 1, 3, 1, 9, 7, 15, 11, 21, 29, 35, 39, 43, 3, 31, 23, 45, 29, 51, 65, 37, 63, 5, 53, 39, 73, 91, 51, 89, 55, 3, 71, 55, 103, 65, 57, 7, 45, 7, 47, 119, 39, 59, 129, 85, 77, 19, 31, 33, 17, 129, 95, 11, 137, 203, 237, 257, 269, 69, 181, 61, 93, 203, 65, 99, 109, 57, 203, 139, 249, 77, 225, 151, 267, 41, 219, 155
OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000 (first 338 terms from N. J. A. Sloane)
MATHEMATICA
j = 1; q = 2; {j}~Join~Reap[Do[If[EvenQ[j], Set[k, j/2], Set[k, j + q]; Set[q, NextPrime[q]]]; If[OddQ[k], Sow[k]]; j = k, {i, 2, 240}]][[-1, -1]] (* Michael De Vlieger, Jan 23 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 23 2022
STATUS
approved