OFFSET
0,2
COMMENTS
This is row 1 of the transposable interspersion A283938.
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = a(n-1) + 1 + floor(n*(3 + sqrt(5))/2), a(0) = 1.
MATHEMATICA
PROG
(PARI) r = (3 + sqrt(5))/2;
a(n) = n + 1 + sum(k=0, n, floor((n - k)/r));
for(n=0, 30, print1(a(n), ", ")) \\ Indranil Ghosh, Mar 19 2017
(Python)
from sympy import sqrt
import math
def a(n):
return n + 1 + sum([int(math.floor((n - k)/r)) for k in range(n + 1)])
print([a(n) for n in range(61)]) # Indranil Ghosh, Mar 19 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 18 2017
STATUS
approved