Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120423
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120423 a(n) = maximum value among all k where 1<=k<=n of GCD(k,floor(n/k)). +0
1
1, 1, 1, 2, 2, 1, 1, 2, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, 3, 3, 3, 3, 2, 5, 5, 5, 5, 5, 3, 3, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 3, 3, 3, 3, 3, 3, 4, 7, 7, 7, 7, 7, 7, 7, 5, 5, 5, 5, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4, 4, 4, 4, 4, 4, 4, 4, 7, 7, 10, 10, 10, 10 (list; graph; listen)
OFFSET

1,4

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

For n = 10, we have the pairs {k,floor(n/k)} of {1,10},{2,5},{3,3},{4,2},{5,2},{6,1},{7,1},{8,1},{9,1},{10,1}. The GCD's of these 10 pairs are 1,1,3,2,1,1,1,1,1,1. Of these, 3 is the largest. So a(10) = 3.

MAPLE

a:=n->max(seq(gcd(k, floor(n/k)), k=1..n)): seq(a(n), n=1..112); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Jul 24 2006

MATHEMATICA

Table[Max[Table[GCD[k, Floor[n/k]], {k, 1, n}]], {n, 1, 100}] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jul 22 2006

CROSSREFS

Sequence in context: A165621 A004739 A156282 this_sequence A113137 A075402 A088855

Adjacent sequences: A120420 A120421 A120422 this_sequence A120424 A120425 A120426

KEYWORD

nonn

AUTHOR

Leroy Quet Jul 11 2006

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com) and Emeric Deutsch (deutsch(AT)duke.poly.edu), Jul 22 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research