OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
211 = P(5) + P(11) = P(1) + P(12) = 35 + 176 = 1 + 210, where P(n) is the n-th pentagonal number A000326.
MAPLE
filter:= proc(n) local X, Y;
nops(select(proc(s) local x, y; x:= subs(s, X); y:= subs(s, Y);
x > 0 and y > x and x mod 6 = 5 and y mod 6 = 5 end proc,
[isolve(24*n+2 = X^2 + Y^2)])) = 2
end proc:
select(filter, [$1..3000]); # Robert Israel, Dec 28 2025
PROG
(PARI) is(k) = sum(i=1, sqrt(1+12*k)\6, sqrt(1+24*k+12*i-36*i*i)%6==5) == 2; \\ Jinyuan Wang, Mar 06 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Olivier Gérard, Mar 05 2020
STATUS
approved
