login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A066790 a(n) = least natural number k such that the distance between (n, sigma(n)) and (n+k, sigma(n+k)) is an integer (i.e., k^2 + (sigma(n+k) - sigma(n))^2 is a square), if such k exists; 0 otherwise. 1
113520, 8, 99585, 44, 5, 5, 48, 10, 280, 3, 45, 3, 2808, 1, 6, 9, 16, 4, 66, 6, 6, 133, 10, 9, 11, 14, 6, 11, 11, 16, 45, 1188, 2, 19, 12, 448, 56, 9, 12, 5, 8, 20, 102, 21, 24, 5, 72, 15, 4, 104, 4, 6, 288, 2, 7, 10, 12, 31, 35, 10, 165, 7, 6, 105, 13, 4, 138, 14, 8, 15, 72, 392 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Is a(n) nonzero for all n?
LINKS
EXAMPLE
8^2 + (sigma(2 + 8) - sigma(2))^2 = 17^2 and k = 8 is the least natural number achieving this, so a(2) = 8.
PROG
(PARI) { for (n=1, 1000, s=sigma(n); k=0; b=0; while(b==0, k++; if (issquare(k^2 + (sigma(n+k) - s)^2), b=1)); write("b066790.txt", n, " ", k) ) } \\ Harry J. Smith, Mar 26 2010
CROSSREFS
Sequence in context: A259010 A259003 A256901 * A135411 A108387 A112009
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jan 18 2002
EXTENSIONS
Terms a(51) - a(72) from Harry J. Smith, Mar 26 2010
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)