OFFSET
1,1
COMMENTS
Numbers k such that k^2 is in A018820. Note that k^2 is never the sum of k^2 - 13 positive squares.
A square k^2 is the sum of m positive squares for all 1 <= m <= k^2 - 14 if k^2 is the sum of 2 and 3 positive squares (see A309778 and proof in Kuczma).
Numbers k not of the form 5*2^e such that k has at least one prime factor congruent to 1 modulo 4.
Has density 1 over all positive integers.
REFERENCES
Marcin E. Kuczma, International Mathematical Olympiads, 1986-1999, The Mathematical Association of America, 2003, pages 76-79.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
13 is a term: 169 = 13^2 = 5^2 + 12^2 = 3^2 + 4^2 + 12^2 = 11^2 + 4^2 + 4^2 + 4^2 = 6^2 + 6^2 + 6^2 + 6^2 + 5^2 = 6^2 + 6^2 + 6^2 + 6^2 + 4^2 + 3^2 = ... = 3^2 + 2^2 + 2^2 + 1^2 + 1^2 + ... + 1^2 (sum of 155 positive squares, with 152 (1^2)'s), but 169 cannot be represented as the sum of 156 positive squares.
PROG
(PARI) isA341329(n) = setsearch(Set(factor(n)[, 1]%4), 1) && !(n/5 == 2^valuation(n, 2))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Feb 09 2021
STATUS
approved