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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A341312 a(n) = a(n-1) + a(n-3) unless a(n-1) and a(n-3) are both even in which case a(n) = (a(n-1) + a(n-3))/2, with a(0) = a(1) = a(2) = 1. 3
1, 1, 1, 2, 3, 4, 3, 6, 5, 8, 7, 12, 10, 17, 29, 39, 56, 85, 124, 90, 175, 299, 389, 564, 863, 1252, 908, 1771, 3023, 3931, 5702, 8725, 12656, 9179, 17904, 15280, 24459, 42363, 57643, 82102, 124465, 182108, 132105, 256570, 219339, 351444, 304007, 523346, 437395, 741402, 632374 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
A sequence intermediate between Narayana's A000930 and Reed Kelly's A214551.
It will be interesting to compare the growth rates of A000930 (well-understood), A241551 (a mystery), the present sequence, and A341313.
It appears that the equation log(a(n)) = 0.296869*n - 4.69131 is a good fit to the data (see the figures). - Hugo Pfoertner, Feb 17 2021
LINKS
MAPLE
RK2:=proc(n) local t1; option remember;
if n <= 2 then 1 else t1:=RK2(n-3)+RK2(n-1);
if (RK2(n-3) mod 2) = 0 and (RK2(n-1) mod 2) = 0 then t1:=t1/2; fi;
t1; fi; end;
[seq(RK2(n), n=0..60)];
PROG
(PARI) a341312(nterms)={my(a=vector(nterms)); a[1]=a[2]=1; a[3]=2; for(n=4, nterms, a[n]=if(a[n-1]%2==0&&a[n-3]%2==0, (a[n-1]+a[n-3])/2, a[n-1]+a[n-3])); concat([1], a)};
a341312(60) \\ Hugo Pfoertner, Feb 17 2021
CROSSREFS
Sequence in context: A074792 A321168 A341313 * A347123 A318510 A048276
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 16 2021
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 28 12:52 EDT 2024. Contains 374693 sequences. (Running on oeis4.)