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!)
A120152 a(n) = 6 + floor((1 + Sum_{j=1..n-1} a(j))/3). 1
6, 8, 11, 14, 19, 25, 34, 45, 60, 80, 107, 142, 190, 253, 337, 450, 600, 800, 1066, 1422, 1896, 2528, 3370, 4494, 5992, 7989, 10652, 14203, 18937, 25249, 33666, 44888, 59850, 79800, 106400, 141867, 189156, 252208, 336277, 448370 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Module[{lista={6}}, Do[AppendTo[lista, Floor[(19+Total[lista])/3]], {40}]; lista] (* Harvey P. Dale, Jun 11 2013 *)
nxt[{s_, a_}]:=Module[{x=Floor[(19+s)/3]}, {s+x, x}]; NestList[nxt, {6, 6}, 40][[;; , 2]] (* Harvey P. Dale, Mar 26 2023 *)
PROG
(Magma)
function f(n, a, b)
t:=0;
for k in [1..n-1] do
t+:= a+Floor((b+t)/3);
end for;
return t;
end function;
g:= func< n, a, b | f(n+1, a, b)-f(n, a, b) >;
A120152:= func< n | g(n, 6, 1) >;
[A120152(n): n in [1..60]]; // G. C. Greubel, Jun 15 2023
(SageMath)
@CachedFunction
def A120152(n): return 6 + (1 + sum(A120152(k) for k in range(1, n)))//3
[A120152(n) for n in range(1, 61)] # G. C. Greubel, Jun 15 2023
CROSSREFS
Sequence in context: A228650 A358531 A200722 * A315855 A287408 A287398
KEYWORD
nonn
AUTHOR
Graeme McRae, Jun 10 2006
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 April 23 07:57 EDT 2024. Contains 371905 sequences. (Running on oeis4.)