OFFSET
1,4
COMMENTS
a(n) >= 1 since 2n always has 1 and 2 as divisors with 1^2 + 1^2 = 2.
FORMULA
a(n) = Sum_{d1|(2*n), d2|(2*n), d3|(2*n), d1<=d2<=d3} [d1^2 + d2^2 = d3], where [ ] is the Iverson bracket.
EXAMPLE
a(10) = 3; The divisors of 2*10 = 20 are {1,2,4,5,10,20}. Since 1^2 + 1^2 = 2, 1^2 + 2^2 = 5 and 2^2 + 4^2 = 20, there are 3 total ways.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Aug 30 2020
STATUS
approved