login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A038760 n - ceiling[sqrt(n)] * floor[sqrt(n)]. 4
0, 0, 0, 1, 0, -1, 0, 1, 2, 0, -2, -1, 0, 1, 2, 3, 0, -3, -2, -1, 0, 1, 2, 3, 4, 0, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 0, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 0, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 0, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 0, -8, -7, -6, -5, -4 (list; graph; refs; listen; history; internal format)
OFFSET

0,9

FORMULA

a(n) =n-A003059(n)*A000196(n) =n-A038759(n)

EXAMPLE

a(31)=1 since 6 and 5 are either side of the square root of 31 and 31-6*5=1

MATHEMATICA

f[n_]:=n-Floor[Sqrt[n]]*Ceiling[Sqrt[n]]; Table[f[n], {n, 0, 5!}] [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Mar 29 2010]

CROSSREFS

Cf. A053188.

Sequence in context: A036580 A101674 A100820 * A143946 A035394 A067167

Adjacent sequences:  A038757 A038758 A038759 * A038761 A038762 A038763

KEYWORD

sign

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), May 03 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 05:45 EST 2012. Contains 205694 sequences.