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!)
A120173 a(n) = 4 + floor((3 + Sum_{j=1..n-1} a(j))/5). 1
4, 5, 6, 7, 9, 10, 12, 15, 18, 21, 26, 31, 37, 44, 53, 64, 77, 92, 110, 132, 159, 191, 229, 275, 330, 396, 475, 570, 684, 821, 985, 1182, 1418, 1702, 2042, 2451, 2941, 3529, 4235, 5082 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
A120173[n_]:= A120173[n]= 4 +Floor[(3 +Sum[a[j], {j, n-1}])/5];
Table[A120173[n], {n, 60}] (* G. C. Greubel, Dec 26 2023 *)
PROG
(Magma)
function f(n, a, b)
t:=0;
for k in [1..n-1] do
t+:= a+Floor((b+t)/5);
end for;
return t;
end function;
g:= func< n, a, b | f(n+1, a, b)-f(n, a, b) >;
A120173:= func< n | g(n, 4, 3) >;
[A120173(n): n in [1..60]]; // G. C. Greubel, Dec 26 2023
(SageMath)
@CachedFunction
def f(n, p, q): return p + (q +sum(f(k, p, q) for k in range(1, n)))//5
def A120173(n): return f(n, 4, 3)
[A120173(n) for n in range(1, 61)] # G. C. Greubel, Dec 26 2023
CROSSREFS
Sequence in context: A218044 A066485 A079445 * A075862 A088685 A022299
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 March 28 04:13 EDT 2024. Contains 371235 sequences. (Running on oeis4.)