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!)
 A296690 a(1) = a(2) = a(3) = 2, a(4) = 4, a(5) = a(6) = 5; a(n) = a(n-a(n-1)) + a(n-a(n-2)) + a(n-a(n-3)) for n > 6. 2
 2, 2, 2, 4, 5, 5, 6, 6, 8, 10, 9, 8, 11, 12, 12, 13, 14, 14, 15, 15, 16, 17, 17, 18, 18, 20, 22, 21, 20, 24, 25, 20, 25, 28, 28, 21, 29, 32, 30, 25, 30, 30, 36, 30, 32, 35, 34, 36, 35, 37, 37, 38, 38, 40, 40, 40, 42, 41, 43, 43, 43, 45, 44, 46, 46, 47, 47, 49, 49, 49, 51, 50, 52, 52, 52, 54, 53, 56, 55, 58, 55, 62, 55 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Altug Alkan, Table of n, a(n) for n = 1..10000 Altug Alkan, Scatterplot of a(n) for n <= 500000 MAPLE a:= proc(n) option remember; procname(n-procname(n-1))+procname(n-procname(n-2))+procname(n-procname(n-3)) end proc: a(1):= 2: a(2):= 2: a(3):= 2: a(4):= 4: a(5):= 5: a(6):= 5: map(a, [\$1..100]); # after Robert Israel at A296440 MATHEMATICA a[n_] := a[n] = If[n<7, {2, 2, 2, 4, 5, 5}[[n]], a[n - a[n-1]] + a[n - a[n-2]] + a[n - a[n-3]]]; Array[a, 100] (* after Giovanni Resta at A296440 *) PROG (PARI) q=vector(10^5); q[1]=2; q[2]=2; q[3]=2; q[4]=4; q[5]=5; q[6]=5; for(n=7, #q, q[n] = q[n-q[n-1]]+q[n-q[n-2]]+q[n-q[n-3]]); q (Scheme) (definec (A296690 n) (cond ((<= n 3) 2) ((<= n 5) n) ((= n 6) 5) (else (+ (A296690 (- n (A296690 (- n 1)))) (A296690 (- n (A296690 (- n 2)))) (A296690 (- n (A296690 (- n 3)))))))) ;; Antti Karttunen, Dec 18 2017 CROSSREFS Cf. A005185, A278055, A284644, A292351, A296413, A296421, A296440, A296518. Sequence in context: A351976 A035659 A008282 * A074765 A029045 A363404 Adjacent sequences: A296687 A296688 A296689 * A296691 A296692 A296693 KEYWORD nonn,look AUTHOR Altug Alkan, Dec 18 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 May 25 22:07 EDT 2024. Contains 372806 sequences. (Running on oeis4.)