

A018821


n is the sum of k nonzero squares for all 2 <= k <= n14.


1



17, 18, 26, 34, 45, 50, 53, 61, 65, 68, 72, 73, 74, 82, 89, 90, 97, 98, 101, 104, 106, 109, 113, 116, 117, 122, 125, 136, 137, 145, 146, 149, 153, 157, 162, 164, 169, 170, 173, 178, 180, 181, 185, 193, 194, 197, 200, 202, 205, 212, 218, 221, 225, 226, 229, 233, 234, 241
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

Every n > 19 is the sum of k nonzero squares for all 6 <= k <= n14.  Robert Israel, Apr 09 2017


LINKS

Robert Israel, Table of n, a(n) for n = 1..10000
Index entries for sequences related to sums of squares


MAPLE

N:= 1000: # to get all terms <= N
A:= {$16..N}:
S:= {seq(i^2, i=1..floor(sqrt(N)))}:
SS:= S:
for k from 2 to 6 do
SS:= select(`<=`, {seq(seq(s+t, s=S), t=SS)}, N):
A := select(`<`, A, k+14) union (A intersect SS);
od:
sort(convert(A, list)); # Robert Israel, Apr 09 2017


CROSSREFS

Sequence in context: A295487 A308888 A084379 * A255923 A226673 A151978
Adjacent sequences: A018818 A018819 A018820 * A018822 A018823 A018824


KEYWORD

nonn


AUTHOR

David W. Wilson


STATUS

approved



