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!)
A120163 a(n) = 4 + floor((3 + Sum_{j=1..n-1} a(j))/4). 1
4, 5, 7, 8, 10, 13, 16, 20, 25, 31, 39, 49, 61, 76, 95, 119, 149, 186, 233, 291, 364, 455, 568, 710, 888, 1110, 1387, 1734, 2168, 2710, 3387, 4234, 5292, 6615, 8269, 10336, 12920, 16150, 20188, 25235 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
l={4}; Do[l=AppendTo[l, Floor[(19+Total[l])/4]], {40}]; l (* Harvey P. Dale, Sep 23 2011 *)
PROG
(Magma)
function f(n, a, b)
t:=0;
for k in [1..n-1] do
t+:= a+Floor((b+t)/4);
end for;
return t;
end function;
g:= func< n, a, b | f(n+1, a, b)-f(n, a, b) >;
A120163:= func< n | g(n, 4, 3) >;
[A120163(n): n in [1..60]]; // G. C. Greubel, Sep 05 2023
(SageMath)
@CachedFunction
def f(n, p, q): return p + (q + sum(f(k, p, q) for k in range(1, n)))//4
def A120163(n): return f(n, 4, 3)
[A120163(n) for n in range(1, 61)] # G. C. Greubel, Sep 05 2023
CROSSREFS
Sequence in context: A076203 A153327 A189707 * A088763 A032722 A293856
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 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)