login

Revision History for A111186

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Difference between the closest squares surrounding squarefree composite numbers.
(history; published version)
#6 by N. J. A. Sloane at Tue Oct 01 17:58:20 EDT 2013
AUTHOR

_Cino Hilliard (hillcino368(AT)gmail.com), _, Nov 12 2005

Discussion
Tue Oct 01
17:58
OEIS Server: https://oeis.org/edit/global/1955
#5 by Bruno Berselli at Sun Jan 20 18:36:07 EST 2013
STATUS

proposed

approved

#4 by Michel Marcus at Sun Jan 20 14:15:25 EST 2013
STATUS

editing

proposed

#3 by Michel Marcus at Sun Jan 20 13:09:07 EST 2013
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.

closest squares surrounding 6. So the difference, 9-4 = 5, is the first entry

in the table.

STATUS

approved

editing

#2 by N. J. A. Sloane at Wed Dec 06 03:00:00 EST 2006
KEYWORD

easy,nonn,new

AUTHOR

Cino Hilliard (hillcino368(AT)hotmailgmail.com), Nov 12 2005

#1 by N. J. A. Sloane at Tue Jan 24 03:00:00 EST 2006
NAME

Difference between the closest squares surrounding squarefree composite numbers.

DATA

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

OFFSET

6,1

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", ") ) ) }

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Nov 12 2005

STATUS

approved