A000548 Squares that are not the sum of 2 nonzero squares.
1, 4, 9, 16, 36, 49, 64, 81, 121, 144, 196, 256, 324, 361, 441, 484, 529, 576, 729, 784, 961, 1024, 1089, 1296, 1444, 1764, 1849, 1936, 2116, 2209, 2304, 2401, 2916, 3136, 3249, 3481, 3844, 3969, 4096, 4356, 4489
Offset: 1
Keywords
Links
Programs
-
Mathematica
okQ[n_] := n == 1 || AllTrue[FactorInteger[n][[All, 1]], Mod[#, 4] != 1& ]; A000548 = Select[Range[100], okQ]^2 (* Jean-François Alcover, Feb 09 2016 *)
Comments