OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = floor(sqrt(prime(n)^2 + prime(n+1)^2)) = floor(sqrt(A069484(n))).
EXAMPLE
If legs = 3,5 then floor(sqrt(9+25)) = 5, the 2nd entry.
MATHEMATICA
Table[Floor[Sqrt[Prime[n]^2 + Prime[n + 1]^2]], {n, 60}] (* Vincenzo Librandi, Mar 11 2015 *)
Floor[Sqrt[Total[#^2]]]&/@Partition[Prime[Range[60]], 2, 1] (* Harvey P. Dale, Mar 30 2024 *)
PROG
(PARI) a(n) = for(j=1, n, x=prime(j); y=prime(j+1); print1(floor(sqrt(x^2+y^2))", "))
(Magma) [Floor(Sqrt(NthPrime(n)^2 + NthPrime(n+1)^2)): n in [1..60]]; // Vincenzo Librandi, Mar 11 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 22 2004
STATUS
approved