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!)
A120165 a(n) = 7 + floor((1 + Sum_{j=1..n-1} a(j))/4). 2
7, 9, 11, 14, 17, 21, 27, 33, 42, 52, 65, 81, 102, 127, 159, 199, 248, 310, 388, 485, 606, 758, 947, 1184, 1480, 1850, 2312, 2890, 3613, 4516, 5645, 7056, 8820, 11025, 13782, 17227, 21534, 26917, 33647, 42058 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) ~ c (5/4)^n with c approximately 5.5905081519. - Robert Israel, Mar 20 2017
MAPLE
A[1]:= 7: S:= 7:
for n from 2 to 100 do A[n]:= floor((29 + S)/4); S:= S + A[n] od:
seq(A[i], i=1..100); # Robert Israel, Mar 20 2017
MATHEMATICA
a = {7}; Do[AppendTo[a, Floor[(29 + Total@ a)/4]], {i, 2, 40}]; a (* Michael De Vlieger, Mar 20 2017 *)
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) >;
A120165:= func< n | g(n, 7, 1) >;
[A120165(n): n in [1..60]]; // G. C. Greubel, Sep 09 2023
(SageMath)
@CachedFunction
def f(n, p, q): return p + (q +sum(f(k, p, q) for k in range(1, n)))//4
def A120165(n): return f(n, 7, 1)
[A120165(n) for n in range(1, 61)] # G. C. Greubel, Sep 09 2023
CROSSREFS
Sequence in context: A081239 A264814 A029612 * A267970 A024828 A139058
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 24 16:56 EDT 2024. Contains 371962 sequences. (Running on oeis4.)