OFFSET
0,6
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..15
FORMULA
a(n) = 10*a(n-1)*a(n-2)*a(n-3)*a(n-4) - a(n-1)*a(n-2)*a(n-3) - a(n-2)*a(n-3)*a(n-4) - a(n-3)*a(n-4)*a(n-1) - a(n-4)*a(n-1)*a(n-2) - a(n-5).
MATHEMATICA
nxt[{a_, b_, c_, d_, e_}]:={b, c, d, e, (e^2+d^2+c^2+b^2+e*d*c*b)/a}; NestList[nxt, {1, 1, 1, 1, 1}, 15][[All, 1]] (* Harvey P. Dale, Aug 08 2022 *)
PROG
(Ruby)
def A(m, n)
a = Array.new(m, 1)
ary = [1]
while ary.size < n + 1
i = a[1..-1].inject(0){|s, i| s + i * i} + a[1..-1].inject(:*)
break if i % a[0] > 0
a = *a[1..-1], i / a[0]
ary << a[0]
end
ary
end
def A276126(n)
A(5, n)
end
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 21 2016
STATUS
approved