Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089216
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089216 Number of triples (x,y,z) of integers such that 0<=x<=y<n, 0<=z<n, n^2=x^2+y^2-z^2. +0
1
0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 2, 1, 3, 3, 2, 2, 5, 3, 5, 4, 4, 4, 7, 4, 7 (list; graph; listen)
OFFSET

1,11

COMMENT

For any integer n>=7, there exists integers x, y, z such that 0<=x<n,0<=y<n, 0<=z<n, n^2=x^2+y^2-z^2. Hence the only functions f of the natural integers into themselves such that: f(m^2+n^2)=f(m)^2+f(n)^2 are the identity and the null function.

PROGRAM

(*Turbo-Pascal*) VAR nMax, n, nbt, x, y, z: integer; BEGIN write('Maximum value of n: '); readln(nMax); for n := 1 to nMax do begin write(n, ':'); nbt := 0; for y := 0 to n-1 do for x := 0 to y do for z := 0 to n-1 do begin if x*x+y*y-z*z=n*n then begin nbt := nbt+1; write('(', x, ', ', y, ', ', z, ')'); end; end; writeln(' ', nbt, '.'); end; END.

CROSSREFS

Sequence in context: A047679 A035050 A046819 this_sequence A102746 A123143 A128133

Adjacent sequences: A089213 A089214 A089215 this_sequence A089217 A089218 A089219

KEYWORD

nonn

AUTHOR

Roger Cuculiere (cuculier(AT)imaginet.fr), Dec 10 2003

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 August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research