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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094685 Modified juggler sequence: if n mod 2 = 0 then round(sqrt(n)) else round(n^(3/2)). 5
0, 1, 1, 5, 2, 11, 2, 19, 3, 27, 3, 36, 3, 47, 4, 58, 4, 70, 4, 83, 4, 96, 5, 110, 5, 125, 5, 140, 5, 156, 5, 173, 6, 190, 6, 207, 6, 225, 6, 244, 6, 263, 6, 282, 7, 302, 7, 322, 7, 343, 7, 364, 7, 386, 7, 408, 7, 430, 8, 453, 8, 476, 8, 500, 8, 524, 8, 548, 8, 573, 8, 598, 8, 624, 9, 650 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

REFERENCES

C. Pickover, Computers and the Imagination, St. Martin's Press, NY, 1991, p. 233.

LINKS

Chai Wah Wu, Table of n, a(n) for n = 0..10000

H. J. Smith, Juggler Sequence

MAPLE

f:=proc(n) if n mod 2 = 0 then RETURN(round(sqrt(n))) else RETURN(round(n^(3/2))); fi; end;

PROG

(Python)

from gmpy2 import isqrt_rem

def A094685(n):

    i, j = isqrt_rem(n**3 if n % 2 else n)

    return int(i+ int(4*(j-i) >= 1)) # Chai Wah Wu, Aug 17 2016

CROSSREFS

Cf. A007320, A007321, A094684, A094683, A094693, A094725.

Sequence in context: A257323 A293559 A094683 * A095396 A051308 A257327

Adjacent sequences:  A094682 A094683 A094684 * A094686 A094687 A094688

KEYWORD

nonn

AUTHOR

N. J. A. Sloane, Jun 09 2004

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 September 19 12:57 EDT 2019. Contains 327198 sequences. (Running on oeis4.)