editing
proposed
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”).
editing
proposed
Cf. A380129 (Strong Birthday Problem)
approved
editing
editing
proposed
0, 1, 4, 5, 9, 10, 13, 14, 16, 17, 20, 21, 25, 26, 29, 30, 34, 35, 36, 37, 40, 41, 45, 46, 49, 50, 53, 54, 58, 59, 62, 63, 64, 65, 68, 69, 73, 74, 77, 78, 80, 81, 82, 85, 86, 90, 91, 94, 95, 97, 98, 100, 101, 104, 105, 109, 110, 113, 114, 116, 117, 120, 121, 122, 125, 126, 130
1,23
proposed
editing
editing
proposed
getLargestSquares[n_Integer] := Module[{remaining = n, squares = {}}, While[remaining > 0, AppendTo[squares, Floor[Sqrt[remaining]]]; remaining -= Last[squares]^2; ]; squares];
a = Select[Range[200], Length[#] == Length[DeleteDuplicates[#]] &@getLargestSquares[#] &]
DuplicateFreeQ[#] &@
Differences[NestWhileList[# - Floor[Sqrt[#]]^2 &, #, # > 0 &]] &]
proposed
editing
editing
proposed
getLargestSquares[n_Integer] := Module[{remaining = n, squares = {}}, While[remaining > 0, AppendTo[squares, Floor[Sqrt[remaining]]]; remaining -= Last[squares]^2; ]; squares];
a = Select[Range[200], Length[#] == Length[DeleteDuplicates[#]] &@getLargestSquares[#] &]
proposed
editing
editing
proposed
allocated for Mike Sheppard
Can be written as sum of distinct squares but not if taken greedily
38, 39, 42, 51, 52, 55, 56, 57, 61, 66, 70, 71, 75, 79, 83, 84, 87, 88, 89, 93, 99, 102, 103, 106, 107, 111, 115, 118, 119, 123, 124, 127, 129, 132, 133, 136, 139, 140, 143, 146, 147, 150, 151, 152, 155, 156, 159, 162, 163, 166, 167, 168, 171, 172, 175, 176, 177, 180, 181, 184, 187, 188, 191, 192, 193, 198, 199
1,1
Montgomery, Hugh, and Ulrike Vorhauer. "Greedy sums of distinct squares." Mathematics of computation 73.245 (2004): 493-513.
allocated
nonn
Mike Sheppard, Jan 14 2025
approved
editing