OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..2000
FORMULA
a(n) = A063827(n) for n > 2. - Georg Fischer, Oct 07 2018
MATHEMATICA
a[n_] := a[n] = Round[ Sqrt[ a[n - 1]^2 + a[n - 2]^2]]; a[1] = 1; a[2] = 3; Table[ a[n], {n, 48}] (* Robert G. Wilson v, Mar 28 2005 *)
PROG
(Python)
from gmpy2 import isqrt_rem
A104804_list = [1, 3]
for _ in range(1000):
A104804_list.append(int(i+ int(4*(j-i) >= 1))) # Chai Wah Wu, Aug 16 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 26 2005
EXTENSIONS
More terms from Robert G. Wilson v, Mar 28 2005
STATUS
approved