Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A061790
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A061790 Number of sums i^2 + j^2 that occur more than once for 1<=i<=j<=n. +0
1
0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 5, 6, 8, 11, 12, 14, 18, 20, 25, 27, 31, 35, 42, 46, 50, 55, 61, 67, 74, 78, 87, 94, 101, 111, 118, 124, 133, 143, 153, 159, 172, 181, 193, 206, 214, 227, 240, 251, 265, 277, 290, 303, 322, 337, 350, 363, 378, 392, 410, 421, 440, 461 (list; graph; listen)
OFFSET

1,8

EXAMPLE

If the {s+t} sums are generated by addition 2 terms of an S set consisting of n different entries, then at least 1, at most n(n+1)/2=A000217(n) distinct values can be obtained. The set of first n squares gives results falling between these two extremes. E.g. S={1,4,9,...,100,121} provides 61 different sums of two, not necessarily different squares: {2,5,8,..,202,221,242}. Only 5 sums arise more than once: 50=1+49=25+25;65=1+64=16+49;85=4+81=36+49; 125=4+121=25+100;130=9+121=49+81. Therefore a(11)=(12*11/2)-61=5.

MATHEMATICA

f[x_] := x^2 t0=Table[Length[Union[Flatten[Table[f[u]+f[w], {w, 1, m}, {u, 1, m}]]]], {m, 1, 75}] t1=Table[(w*(w+1)/2)-Part[t0, w], {w, a, b}]

CROSSREFS

A000217.

Sequence in context: A039852 A035938 A024503 this_sequence A107236 A027586 A039860

Adjacent sequences: A061787 A061788 A061789 this_sequence A061791 A061792 A061793

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Jun 22 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 6 16:04 EDT 2008. Contains 143483 sequences.


AT&T Labs Research