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!)
A120151 a(n) = 5 + floor( Sum_{j=1..n-1} a(j)/3 ). 1

%I #10 Jun 16 2023 08:11:16

%S 5,6,8,11,15,20,26,35,47,62,83,111,148,197,263,350,467,623,830,1107,

%T 1476,1968,2624,3499,4665,6220,8293,11058,14744,19658,26211,34948,

%U 46597,62130,82840,110453,147271,196361,261815,349086,465448,620598,827464,1103285

%N a(n) = 5 + floor( Sum_{j=1..n-1} a(j)/3 ).

%H Harvey P. Dale, <a href="/A120151/b120151.txt">Table of n, a(n) for n = 1..1000</a>

%p a:= proc(n) option remember;

%p 5+floor(add(a(j)/3, j=1..n-1))

%p end:

%p seq(a(n), n=1..44); # _Alois P. Heinz_, Jun 16 2023

%t nxt[{t_,n_}]:=Module[{c=Floor[(15+t)/3]},{t+c,c}]; NestList[nxt,{5,5},40][[All,2]] (* _Harvey P. Dale_, Jun 19 2022 *)

%o (Magma)

%o function f(n,a,b)

%o t:=0;

%o for k in [1..n-1] do

%o t+:= a+Floor((b+t)/3);

%o end for;

%o return t;

%o end function;

%o g:= func< n,a,b | f(n+1,a,b)-f(n,a,b) >;

%o A120151:= func< n | g(n,5,0) >;

%o [A120151(n): n in [1..60]]; // _G. C. Greubel_, Jun 15 2023

%o (SageMath)

%o @CachedFunction

%o def A120151(n): return 5 + (sum(A120151(k) for k in range(1, n)))//3

%o [A120151(n) for n in range(1, 61)] # _G. C. Greubel_, Jun 15 2023

%Y Cf. A072493, A073941, A112088.

%K nonn

%O 1,1

%A _Graeme McRae_, Jun 10 2006

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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)