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!)
A111186 Difference between the closest squares surrounding squarefree composite numbers. 0
5, 5, 7, 7, 7, 7, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19 (list; graph; refs; listen; history; text; internal format)
OFFSET
6,1
LINKS
FORMULA
Let n be a squarefree composite number and r = floor(sqrt(n)). Then the closest surrounding squares of n are r^2 and (r+1)^2. So d = (r+1)^2 - r^2 = 2r+1.
EXAMPLE
6 is the first positive squarefree composite number. 2^2 and 3^2 are the closest squares surrounding 6. So the difference, 9-4 = 5, is the first entry in the table.
PROG
(PARI) surrsq(n) = { local(x, y, j, r, d); for(x=1, n, if(!issquare(x)&!isprime(x), r=floor(sqrt(x)); d=r+r+1; print1(d", ") \ print1(r^2", "(r+1)^2", ") ) ) }
CROSSREFS
Sequence in context: A231589 A133888 A244587 * A127798 A053671 A028278
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Nov 12 2005
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 25 15:00 EDT 2024. Contains 371989 sequences. (Running on oeis4.)