A,C,B are angles triangle. a,b,c are sides triangle (a,b,c Integer numbers). For C=2A -> c2=a2+ab. Solving system inequalities of triangle: a+b>c, b+c>a, a+c>b -> a<c<2a. for twice iteration 1th-a,2th-c (a<c<2a) and calculate b=(c2-a2)/a if b is Integer number and gcd(a,b,c)=1. My result for p=2470 is pos=219 (count(p)=1 for all p if pos < 219). This elementary geometry,but result incorrect.You can send a table of your results for 1<pos<215. Thank.

n is the position of the term in the sequence, not the power you should use. I see the examples could give you the wrong idea about using the number of digits of the number, but that's not the case here.

smenergy@inbox.ru

A,C,B are angles triangle. a,b,c are sides triangle (a,b,c Integer numbers). For C=2A -> c

2=a2+ab. Solving system inequalities of triangle: a+b>c, b+c>a, a+c>b -> a<c<2a. for twice iteration 1th-a,2th-c (a<c<2a) and calculate b=(c2-a2)/a if b is Integer number and gcd(a,b,c)=1. My result for p=2470 is pos=219 (count(p)=1 for all p if pos < 219). This elementary geometry,but result incorrect.You can send a table of your results for 1<pos<215. Thank.Indeed... Thank you for pointing this out.

(Python) Tests logs are totally unclear:

What do those two lines mean? The second line is always displayed in red though my code passes approximatively 90% of tests.

`n`

is the position of the term in the sequence, not the power you should use. I see the examples could give you the wrong idea about using the number of digits of the number, but that's not the case here.It can be any power, as far as I remember. (that's why it's 5 kyu I suppose)

Shouldn't it be 17^4?

4 + 9 + 1 + 3 = 17 => 17

^{3}= 4913Can anyone explain me how 4913 is a true case?

Yes, it is correct.

For n=215 result p=2470 and side=715,729,1026 is correct?

Haskell tests requirements are disproportionate compared with other languages.

Ok thanks. Well that also means that edge cases are not systematically tested in random tests.

Haskell reference solution checks all integers in range

`[2; nMax - diff]`

instead of`[2; nMax - diff)`

.## Loading more items...