OFFSET
1,2
COMMENTS
Integers n such that number of points on surface of a 3-dimensional cube in which each face has a square grid of dots drawn on it (with n+1 points along each edge, including the corners) is the sum of two nonzero squares.
EXAMPLE
PROG
(PARI) is_a000404(n) = {for( i=1, #n=factor(n)~%4, n[1, i]==3 && n[2, i]%2 && return); n && ( vecmin(n[1, ])==1 || (n[1, 1]==2 && n[2, 1]%2))}
a005897(n) = if(n, 6*n^2+2, 1);
for(n=0, 200, if(is_a000404(a005897(n)), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Feb 04 2016
STATUS
approved