login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A239975 Least k>0 such that n^2 + (n+k)^2 is a square, or -1 if no such k exists. 0
7, 2, 17, 7, 3, 14, 49, 4, 71, 34, 5, 14, 127, 6, 161, 1, 7, 98, 241, 8, 35, 142, 9, 17, 391, 10, 449, 28, 11, 254, 49, 12, 647, 322, 13, 2, 799, 14, 881, 73, 15, 482, 1057, 7, 119, 70, 17, 113, 1351, 18, 77, 34, 19, 782, 1681, 3, 1799, 898, 21, 56, 7, 22, 2177, 217, 23 (list; graph; refs; listen; history; text; internal format)
OFFSET

5,1

COMMENTS

a(3*n) <= n because with k=n: (3*n)^2 + (4*n)^2 = (5*n)^2.

LINKS

Table of n, a(n) for n=5..69.

EXAMPLE

a(6) = 2 because 6^2 + (6+2)^2 = 100 is a square.

a(20) = 1 because 20^2 + 21^2 = 841 = 29^2.

PROG

(PARI) s=[]; for(n=5, 100, k=1; while(!issquare(n^2+(n+k)^2), k++); s=concat(s, k)); s \\ Colin Barker, Mar 31 2014

CROSSREFS

Cf. A000290, A055527 (least k>0 such that n^2 + k^2 is a square).

Sequence in context: A293452 A030406 A332209 * A279807 A282362 A248282

Adjacent sequences:  A239972 A239973 A239974 * A239976 A239977 A239978

KEYWORD

nonn

AUTHOR

Alex Ratushnyak, Mar 30 2014

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 5 09:58 EDT 2020. Contains 334840 sequences. (Running on oeis4.)