OFFSET
1,1
COMMENTS
Proper subset of A024364.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..800
John D. Cook, Sparse binary Pythagorean triples (2025).
H. S. Uhler, A Colossal Primitive Pythagorean Triangle, The American Mathematical Monthly, Vol. 57, No. 5 (May, 1950), pp. 331-332.
Wikipedia, Pythagorean triple.
Index entries for linear recurrences with constant coefficients, signature (20,-64).
FORMULA
a(n) = 2^(4n+1) + 2^(2n+1) + 2^(4n).
G.f.: 8*(7 - 40*x)/((1 - 4*x)*(1 - 16*x)). - Stefano Spezia, Feb 13 2025
MATHEMATICA
LinearRecurrence[{20, -64}, {56, 800}, 20] (* Paolo Xausa, Feb 26 2025 *)
PROG
(PARI) a(n) = 2^(4*n+1) + 2^(2*n+1) + 2^(4*n)
(Magma) [2^(4*n+1) + 2^(2*n+1) + 2^(4*n): n in [1..20]];
(Python)
def A381008(n): return (m:=1<<(n<<1))*(2+3*m) # Chai Wah Wu, Feb 13 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert C. Lyons, Feb 12 2025
STATUS
approved