OFFSET
1,38
LINKS
EXAMPLE
The first terms, alongside the corresponding k's, are:
n a(n) k's
-- ---- ----
1 0 None
2 0 None
3 0 None
4 0 None
5 0 None
6 0 None
7 0 None
8 0 None
9 0 None
10 1 3
11 1 4
12 0 None
PROG
(PARI) { for (n = 1, #pp = primes(87), print1 (sum(k = 1, n-1, issquare((pp[n] - pp[k])^2 + (n - k)^2))", "); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Aug 17 2024
STATUS
approved