OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
nxt[{t_, a_}]:=Module[{c=Floor[(23+t)/3]}, {t+c, c}]; Rest[Transpose[ NestList[ nxt, {0, 7}, 40]][[2]]] (* Harvey P. Dale, Oct 08 2015 *)
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) >;
A120153:= func< n | g(n, 7, 2) >;
[A120153(n): n in [1..60]]; // G. C. Greubel, Jun 15 2023
(SageMath)
@CachedFunction
[A120153(n) for n in range(1, 61)] # G. C. Greubel, Jun 15 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Graeme McRae, Jun 10 2006
STATUS
approved