Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A076600
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A076600 a(n) = smallest k>n such that n^2+k^2 is a perfect square, or 0 if no such k exists. +0
12
1, 0, 0, 4, 0, 12, 8, 24, 15, 12, 24, 60, 16, 84, 48, 20, 30, 144, 24, 180, 21, 28, 120, 264, 32, 60, 168, 36, 45, 420, 40, 480, 60, 44, 288, 84, 48, 684, 360, 52, 42, 840, 56, 924, 117, 60, 528, 1104, 55, 168, 120, 68, 165, 1404, 72, 132, 90, 76, 840, 1740, 63, 1860 (list; graph; listen)
OFFSET

0,4

EXAMPLE

a(3)=4 because 3^2+4^2=5^2; a(17)=144 because 17^2+144^2=145^2.

MATHEMATICA

f[ n_ ] := Block[ {k = n + 1}, While[ ! IntegerQ[ Sqrt[ n^2 + k^2 ] ], k++ ]; k ]; Join[ {1, 0, 0, 4, 0}, Table[ f[ n ], {n, 5, 61} ] ]

PROGRAM

(PARI) a(n)=for(m=n+1, n^2\2+1, if(issquare(m^2+n^2), return(m))); 0 - Michael Somos Mar 03 2004

CROSSREFS

Sequence in context: A072194 A151921 A141554 this_sequence A002978 A056460 A137523

Adjacent sequences: A076597 A076598 A076599 this_sequence A076601 A076602 A076603

KEYWORD

easy,nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Oct 21 2002

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Oct 23 2002

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 November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research