OFFSET
1,1
COMMENTS
EXAMPLE
2 is in the sequence because 2 = 1 + 1 and L(1)*L(1)= (1) *(1) = 1.
13 is in the sequence because 13 = 2^2 + 3^2 and L(2)*L(3)= (-1)*(-1) = 1.
193 is in the sequence because 193 = 12^2 + 7^2 and L(12)*L(7)= (-1)*(-1) = 1.
MAPLE
isA174050 := proc(n)
local x, y ;
if not isprime(n) then
return false;
end if;
for x from 1 do
if x^2 > n then
return false;
end if;
if issqr(n-x^2) then
y := sqrt(n-x^2) ;
return true;
end if;
end if;
end do:
end proc:
for n from 1 to 1100 do
if isA174050(n) then
printf("%d, \n", n) ;
end if;
end do: # R. J. Mathar, Jul 09 2012
MATHEMATICA
lambdaQ[{x_, y_}] := LiouvilleLambda[x]*LiouvilleLambda[y] == 1; Select[ Prime /@ Range[200], Or @@ lambdaQ /@ PowersRepresentations[#, 2, 2] &] (* Jean-François Alcover, Jul 30 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Mar 06 2010
STATUS
approved