The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A356839 a(n) = A005132(2*n) + A005132(2*n+1). 2
 1, 9, 9, 33, 33, 33, 33, 33, 33, 105, 105, 59, 59, 59, 59, 59, 125, 191, 191, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 381, 381, 381, 381, 381, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 429, 631, 631, 631, 631, 191, 417, 873, 873 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 LINKS Michel Marcus, Table of n, a(n) for n = 0..9999 Index entries for sequences related to Recamán's sequence. MATHEMATICA r[0] = 0; r[n_] := r[n] = If[(d = r[n - 1] - n) >= 0 && FreeQ[Array[r, n, 0], d], d, r[n - 1] + n]; a[n_] := r[2*n] + r[2*n + 1]; Array[a, 100, 0] (* Amiram Eldar, Sep 02 2022 *) PROG (PARI) recaman(N)={ my(s, t, v=vector(N)); for(n=1, N, s=bitor(s, 1<=0 and c not in aset else b+n if n&1: yield a+b A356839_list = list(islice(A356839_gen(), 70)) # Chai Wah Wu, Sep 15 2022 CROSSREFS Cf. A005132. Sequence in context: A147378 A146604 A294691 * A147172 A146825 A147029 Adjacent sequences: A356836 A356837 A356838 * A356840 A356841 A356842 KEYWORD nonn AUTHOR Paul Curtz, Aug 31 2022 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 15 16:34 EDT 2024. Contains 373410 sequences. (Running on oeis4.)