The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A283655 a(n) = b(b(n+1)) - b(n-b(n)+1) where b(n) = A004001(n). 2
 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 7, 7, 7, 7, 7 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,18 LINKS Altug Alkan, Table of n, a(n) for n = 1..10000 Altug Alkan, Illustration of A283655 EXAMPLE a(1) = 0 since a(1) = A004001(A004001(2)) - A004001(1-A004001(1)+1) = 1 - 1 = 0. MATHEMATICA b[1] = 1; b[2] = 1; b[n_] := b[n] = b[b[n - 1]] + b[n - b[n - 1]]; a[n_] := b[b[n + 1]] - b[n - b[n] + 1]; Array[a, 100] (* Robert G. Wilson v, Mar 13 2017 *) PROG (PARI) a=vector(1001); a[1]=a[2]=1; for(n=3, #a, a[n]=a[a[n-1]]+a[n-a[n-1]]); va = vector(1000, n, a[a[n+1]]-a[n+1-a[n]]) CROSSREFS Cf. A004001, A004074, A233270, A249071. Sequence in context: A127322 A340172 A163529 * A262742 A360078 A027354 Adjacent sequences: A283652 A283653 A283654 * A283656 A283657 A283658 KEYWORD nonn AUTHOR Altug Alkan, Mar 13 2017 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 September 8 10:03 EDT 2024. Contains 375753 sequences. (Running on oeis4.)