login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A004436
Numbers that are not the sum of 3 distinct squares.
2
1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 15, 16, 18, 19, 22, 23, 24, 27, 28, 31, 32, 33, 36, 39, 43, 44, 47, 48, 51, 55, 57, 60, 63, 64, 67, 71, 72, 76, 79, 87, 88, 92, 95, 96, 99, 102, 103, 108, 111, 112
OFFSET
1,2
MATHEMATICA
r[n_] := Reduce[0 <= x < y < z && x^2 + y^2 + z^2 == n, {x, y, z}, Integers]; ok[n_] := r[n] == False; Select[ Range[112], ok] (* Jean-François Alcover, Dec 05 2011 *)
CROSSREFS
Cf. A001974 (complement).
Sequence in context: A373159 A081754 A336654 * A028237 A194463 A140467
KEYWORD
nonn
STATUS
approved