OFFSET
1,2
FORMULA
a(n) = Sum_{k=0..n} T(n, k) where T(n, k) = T(n-1, k-1)^2 + T(n-1, k)^2; T(0,0)=1; T(n,-1):=0; T(n, k):=0, n < k.
EXAMPLE
1 = 1;
1 + 1 = 2;
1 + 2 + 1 = 4;
1 + 5 + 5 + 1 = 12.
PROG
(Python)
def r(i):
t = [[0, 1, 0], [0, 1, 1, 0]]
for n in range(2, i+1):
t.append([0])
for k in range(1, n+2):
t[n].append(t[n-1][k-1]**2 + t[n-1][k]**2)
t[n].append(0)
return(sum(t[i]))
for n in range(1, 10):
print (r(n))
CROSSREFS
KEYWORD
nonn
AUTHOR
Cortney Reagle, Sep 17 2019
EXTENSIONS
a(10) corrected by Georg Fischer, Mar 19 2024
STATUS
approved